Regenerated apartment_mapping.json from the source Excel (pavilion-apt-numbering.xlsx): 134 units (floors 1–7, wings East/West, 13 detached (B)). Prior doc's "88 units / Penthouse / Library / Pool" were not in the source data.
Added 12 new issue categories to SEED_CATEGORIES_DATA (9 Maintenance + 3 CS). New seed total = 35 (22 Maintenance, 9 CS, 4 Emergency).
Notes
No alembic migration: schema is created at startup (Base.metadata.create_all + ensure_legacy_schema) and categories/units are seeded by idempotent functions.
App is containerized (FastAPI/uvicorn); deploy via docker compose up -d --build after merge.
WARNING: unit codes changed from the old 011E style to the Excel's 101E style. The existing PoC DB will retain 120 legacy orphan rows unless wiped. Fresh deploy reseeds clean.
Verification
apartment_mapping.json units: 134
SEED_CATEGORIES_DATA entries: 35 (34 visible; 35 with ?include_hidden=true — Gas Leak is alert-only)
seed.py syntax: OK
Rollback
Code: git revert <sha> --no-edit then docker compose up -d --build
DB (SQLite): sqlite3 /app/data/denya_onecare.db < backup.sql
## Changes (Phase 1, corrected)
- Regenerated `apartment_mapping.json` from the source Excel (`pavilion-apt-numbering.xlsx`): **134 units** (floors 1–7, wings East/West, 13 detached `(B)`). Prior doc's "88 units / Penthouse / Library / Pool" were not in the source data.
- Added **12 new issue categories** to `SEED_CATEGORIES_DATA` (9 Maintenance + 3 CS). New seed total = **35** (22 Maintenance, 9 CS, 4 Emergency).
## Notes
- No alembic migration: schema is created at startup (`Base.metadata.create_all` + `ensure_legacy_schema`) and categories/units are seeded by idempotent functions.
- App is containerized (FastAPI/uvicorn); deploy via `docker compose up -d --build` after merge.
- WARNING: unit codes changed from the old `011E` style to the Excel's `101E` style. The existing PoC DB will retain 120 legacy orphan rows unless wiped. Fresh deploy reseeds clean.
## Verification
- `apartment_mapping.json` units: 134
- `SEED_CATEGORIES_DATA` entries: 35 (34 visible; 35 with `?include_hidden=true` — Gas Leak is alert-only)
- `seed.py` syntax: OK
## Rollback
- Code: `git revert <sha> --no-edit` then `docker compose up -d --build`
- DB (SQLite): `sqlite3 /app/data/denya_onecare.db < backup.sql`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Changes (Phase 1, corrected)
apartment_mapping.jsonfrom the source Excel (pavilion-apt-numbering.xlsx): 134 units (floors 1–7, wings East/West, 13 detached(B)). Prior doc's "88 units / Penthouse / Library / Pool" were not in the source data.SEED_CATEGORIES_DATA(9 Maintenance + 3 CS). New seed total = 35 (22 Maintenance, 9 CS, 4 Emergency).Notes
Base.metadata.create_all+ensure_legacy_schema) and categories/units are seeded by idempotent functions.docker compose up -d --buildafter merge.011Estyle to the Excel's101Estyle. The existing PoC DB will retain 120 legacy orphan rows unless wiped. Fresh deploy reseeds clean.Verification
apartment_mapping.jsonunits: 134SEED_CATEGORIES_DATAentries: 35 (34 visible; 35 with?include_hidden=true— Gas Leak is alert-only)seed.pysyntax: OKRollback
git revert <sha> --no-editthendocker compose up -d --buildsqlite3 /app/data/denya_onecare.db < backup.sql