Public Access
952 B
952 B
Recipe Catalog Import Phase 1
- Added the global
recipe_import_stagingmodel and Alembic revision0017from0016. - Preserved source revisions, licensing and attribution, raw and normalized JSON payloads, validation results, and review metadata.
- Enforced revision uniqueness, lower-case SHA-256 shape, paired review metadata, and immutable raw payloads.
- Local verification: 2 static tests passed and Python compilation/diff checks were clean.
- Live verification: all 4 focused tests passed against a disposable PostgreSQL database; database cleanup succeeded.
- Added a
0017 -> 0016 -> 0017test guarded toTEST_DATABASE_URLdatabases ending in_test; it restores Alembic head infinallyand never downgrades across0015. - Known pre-existing limitation:
backend/tests/test_alembic.pydowngrades to base, but0015_normalize_pantry_aislesintentionally raises on downgrade because it cannot restore normalized source values.