feat: Phase 1 — apartment mapping (134 units) + 12 categories #8

Merged
mumuni-bot merged 3 commits from feat/phase1-apartment-mapping-categories-timeout into main 2026-08-26 23:51:41 +00:00
Owner

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
## 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`
mumuni-bot added 1 commit 2026-08-26 15:29:22 +00:00
mumuni-bot added 1 commit 2026-08-26 21:29:58 +00:00
mumuni-bot added 1 commit 2026-08-26 23:44:34 +00:00
mumuni-bot merged commit aef9d90097 into main 2026-08-26 23:51:41 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SyslogSolution/denya-onecare#8