fix(gitignore): ignore infra/*-tenant.personas.json (ADR-0026) #268
Reference in New Issue
Block a user
Delete Branch "fix/gitignore-tenant-personas"
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?
Summary
Add
infra/*-tenant.personas.jsonto.gitignoremirroring the existing*-tenant.entra.jsonpattern, so the per-persona Entraoidmap consumed byapps/portal-bff/prisma/seed.ts(ADR-0026) cannot accidentally be committed. The schema templateinfra/test-tenant.personas.example.jsonwas already in place; the matching ignore was missed when the personas file was introduced.Background
ADR-0026 §"Seed personas" introduced two parallel tenant-private files:
*-tenant.entra.json— Entra security-group GUIDs → role-slug map (24 entries). Has been correctly ignored since shipped (.gitignorelines 34-36).*-tenant.personas.json— Per-persona Entraoidmap (19 entries). The example template was committed correctly but the matching ignore pattern was never added.Practical consequence:
infra/test-tenant.personas.jsonhas been showing up as untracked (??) ingit statuson the R&D Lead's machine since the seed personas work landed in late May, surviving multiple sessions and PR opens — and could have been accidentallygit add .-ed at any point. Confirmed viagit log --all -- infra/test-tenant.personas.json(empty) that no commit has touched it yet, so no history rewrite needed — pure forward-only fix.What lands
.gitignoreinfra/*-tenant.personas.json(ignore),!infra/*-tenant.personas.example.json(keep the template tracked).infra/README.md.example.jsontemplate and ADR-0026, right under the existing entra row.Verification
git check-ignore -v infra/test-tenant.personas.json→ matched by.gitignore:40:infra/*-tenant.personas.json.git check-ignore -v infra/test-tenant.personas.example.json→ not ignored (the!negation correctly preserves the example template as a tracked file).git status --shortno longer surfaces the??for the personas file.git log --all -- infra/test-tenant.personas.jsonconfirms zero commits ever referenced this path, so nogit rm --cachedor history rewrite is required.Related