PH1.6 — Seed: sample FleetPulse feed, catalogue, three crews, week of shifts, dev persons #14
Labels
No labels
in-progress
in-review
ready-for-agent
seam-request
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
patrick/Polaris#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Row PH1.6 in
docs/12-implementation-plan.md(branch, owned paths and doc section are defined there).What to build
polaris seedloads a demoable dataset in one command: the sample FleetPulse document from the design document, the full catalogue, three crews with people, home bases and a week of shifts, and dev persons linked to the LDAP users bypreferred_username. Seed modules are discovered per aggregate and ordered by an explicitorder.Acceptance criteria
polaris seedon an empty database completes; running it twice is idempotentpersonrow bypreferred_usernameBlocked by
Starting work on branch
feature/db-seed(frommain). Owned paths:backend/src/polaris/seed/**,backend/tests/fixtures/feed/**.Done — all four acceptance criteria checked and verified end to end (real Postgres+PostGIS: ran
polaris seedtwice against a freshly migrated database, row counts identical after the second run: 3 crews, 7 crew_member, 7 crew_skill, 21 shifts, 11 persons (5 LDAP-linked + 6 fictional), 4 skills, 5 service types, 6 service_type_skill, 9 reason codes, 1 vehicle, 1 ingest_record).One note on scope: to actually deliver
polaris seedas a runnable command I addedbackend/src/polaris/cli/seed.py(and its test,backend/tests/unit/cli/test_seed_command.py) — one small additive file outside this row's literalbackend/src/polaris/seed/**/tests/fixtures/feed/**glob. Same treatment PH1.4 gavecli/replay_run.py(that row's own owned-paths list named the one newcli/file it needed alongside its main glob) — this row's table cell just didn't spell it out. It's a pure drop-in following the existing CLI discovery seam (cli/__init__.pyuntouched), so it can't conflict with another branch's own newcli/*.pyfile. Also addedbackend/tests/unit/seed/**andbackend/tests/integration/seed/**(new test directories, nobody else's) for discovery/idempotency coverage per the repo's Definition of Done.PR incoming.