Skip to content

Merge pull request #42 from fastapi-startkit/has-many-throgh-relation…#43

Merged
bedus-creation merged 5 commits into
mainfrom
fix-tests
May 2, 2026
Merged

Merge pull request #42 from fastapi-startkit/has-many-throgh-relation…#43
bedus-creation merged 5 commits into
mainfrom
fix-tests

Conversation

@bedus-creation
Copy link
Copy Markdown
Contributor

…ships

feat: polymorphic relationship

bedus-creation and others added 5 commits May 2, 2026 04:27
- Remove stale `from dumpdie import dd` debug import from MorphTo.py
- Fix compile_alter_sql mutating diff.from_table.added_columns in place
  via .pop() and .update(), causing KeyError and wrong column lists when
  to_sql() is called more than once (e.g. __aexit__ + test assertion).
  Work on dict copies so each call produces correct idempotent output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The root .gitignore had **/.env which prevented the example app .env
from being committed. CI clones a fresh repo with no .env files, so
resolve_environment raised "Unable to determine environment." for all
config-app tests. Added !example/**/.env negation and force-tracked
the config-app .env (safe to commit — it contains only demo values).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Instead of tracking .env directly, add .env.example with safe defaults
and copy it in the CI workflow before running tests. This follows the
standard convention — .env stays gitignored, .env.example is the
committed template.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bedus-creation bedus-creation merged commit cbe3dbe into main May 2, 2026
1 of 3 checks passed
@bedus-creation bedus-creation deleted the fix-tests branch May 5, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant