Repository navigation
Retire the done governance data migrations (PR 5b) - #2775
peterdrier wants to merge 5 commits into
Conversation
…SubjectType) #2672 merged after #2614 renamed the constant, so main does not build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186neA5CPnR7UJzbhtFJzTs
Last step of moving the governance bodies into Governance: - EF migration deletes the three seed rows (their memberships cascade; the audit log keeps the history). - Retire the three governance data migrations and the copy-from-Teams code; Governance no longer reads Teams for its bodies and keeps the old ids as the bodies' audit keys. - Drop SystemTeamType Board/Asociados/Colaboradors, their SystemTeamIds and the Teams skips for them. - Google retires a Drive resource whose team no longer exists, as it does for an inactive team. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186neA5CPnR7UJzbhtFJzTs
|
@codex review Generated by Claude Code |
|
The preview deployment for humans-qa is ready. 🟢 Open Preview | Open Build Logs | Open Application Logs Last updated at: 2026-11-28 20:43:58 CET |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Reviewed commit acf34fa. 1 inline finding(s) posted. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Per destructive-drops-need-approval, the row delete waits for its own PR once production reports teams.remove-governance-body-roles done. This PR now retires governance.body-links-from-teams and teams.retire-governance-bodies (both done on prod, read 2026-11-28 11:16 UTC). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186neA5CPnR7UJzbhtFJzTs
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
The Generated by Claude Code |
|
This PR has a merge conflict with |
…-7jp5tr # Conflicts: # tests/Humans.Governance.Tests/Services/GovernanceBodyLinksServiceTests.cs
PR Surface ReportCompared Summary: 19 changed file(s) | EF migrations: 0 added file(s), max 0/1 per context Reforge Surface Score
Section Deltas
Section Size & Complexity Deltas
Rule Deltas
Corpus Size & Complexity
At head: largest class Published Write Surface16 of 57 sections publish write capability, 48 interfaces (0). Interface SurfaceNo new interfaces or interface members. Diff Size
|
|
This PR has a merge conflict with |
…-7jp5tr # Conflicts: # tests/Humans.Governance.Tests/Services/GovernanceBodyLinksServiceTests.cs
What
PR 5b of moving the governance bodies out of Teams: retires the two governance data migrations that production reports done, and the code that only existed for them. The team rows stay; deleting them is a separate destructive PR (see below).
governance.body-links-from-teamswith the copy-from-Teams code inGovernanceBodyLinksService, which drops itsITeamServicedependency. Governance keeps the three old team ids as the bodies' audit keys (AuditIds), noted indocs/guid-reservations.md.teams.retire-governance-bodiesandRetireGovernanceBodyTeamsAsync.DeactivateRetiredTeamResourcesAsyncalso retires a Drive resource whose team no longer exists, once its claim reconciles cleanly, the same as for an inactive team. Needed before the rows go.TicketingSettingsAuditEntityType→TicketingSettingsAuditSubjectType; Tickets: erase each event's pretix data after the post-event hold #2672 merged after Rename AuditLog to Audit: entries, subject, target, System (job) #2614's rename). Same change as Tickets: fix main build after the Audit rename #2774.Why
Production,
GET https://humans.nobodies.team/api/data-migrations, read 2026-11-28 11:16 UTC:governance.body-links-from-teamsdone: true,teams.retire-governance-bodiesdone: true.teams.remove-governance-body-roles(#2678) is not on production yet, so it stays.Next, its own
⚠️ DESTRUCTIVEPR, once production reportsteams.remove-governance-body-rolesdone and this PR is deployed: an EF-generated migration deleting the three seed rows, retiring that last migration, and droppingSystemTeamType.Board/Asociados/Colaboradors, theirSystemTeamIdsand theGovernanceBodyTeamIdsskips. Peter's go-ahead for deleting the rows is on the thread; he confirmed no budget, calendar, store or legal-document rows in prod use these teams.Existing surface checked
No new durable surface. Removes one
ITeamManagementServicemethod, two data migrations and one Governance constructor dependency.Checklist
tier:standard.ProductVersionline is EF's own output fromdotnet ef migrations removeof the dropped migration.mainonpeterdrier/Humans.origin/main.NuGet packages updated?none.New project rule?none.Nav coverageno page.https://claude.ai/code/session_0186neA5CPnR7UJzbhtFJzTs
Generated by Claude Code