chore(crewing): expand abbreviated rank names (+ seed ranks to prod) #111
No reviewers
Labels
No labels
bug
claude-failed
claude-pr
claude-queue
claude-working
epic
feature
interactive
portal
triaged
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shad0w/pelagia-portal#111
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/expand-rank-names"
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?
Context
Seeded the crewing ranks (org hierarchy from wiki
Crewing-Data-Model§2) into prod'sRanktable — which was empty (crewing's UI is flag-gated off, but the reference data can still live in the table). 19 ranks loaded with the wiki parent/child hierarchy, with abbreviations expanded per request.The canonical seed (
prisma/seed-ranks.ts) upserts ranks bycodeand overwritesnamefromprisma/rank-data.ts. So expanding the names only in prod would be reverted by any future seed. This PR expands them in the source of truth too:PM→ Project ManagerAssistant PM→ Assistant Project ManagerSr. Dredge Operator→ Senior Dredge OperatorJr. Dredge Operator→ Junior Dredge OperatorSr. Fabricator→ Senior Fabricator(The other names were already expanded: Pipeline Assistant, Engine Room Operator, Fabricator / Welder, etc.) Hierarchy, codes,
category,isSeafarer, andgrantsLoginare unchanged.What I did on prod (out-of-band data load)
Ranktable (mirrors prod): 19 ranks, exact wiki hierarchy, expanded names,grantsLoginonly on the three management ranks (Project Manager / Assistant Project Manager / Site In-charge), idempotent (re-run adds nothing).db:seedstays compatible (upsert bycode, count stays 19 — no duplicates).Ranknow has the 19 ranks. Document requirements (RankDocRequirement) were not loaded — you asked for ranks only.tscclean; no tests/code referenced the old abbreviated names.🤖 Generated with Claude Code