Skip to content

Retire the done governance data migrations (PR 5b) - #2775

Open
peterdrier wants to merge 5 commits into
mainfrom
claude/project-thread-7jp5tr
Open

peterdrier wants to merge 5 commits into
mainfrom
claude/project-thread-7jp5tr

Conversation

@peterdrier

@peterdrier peterdrier commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

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).

Why

Production, GET https://humans.nobodies.team/api/data-migrations, read 2026-11-28 11:16 UTC:
governance.body-links-from-teams done: true, teams.retire-governance-bodies done: true. teams.remove-governance-body-roles (#2678) is not on production yet, so it stays.

Next, its own ⚠️ DESTRUCTIVE PR, once production reports teams.remove-governance-body-roles done and this PR is deployed: an EF-generated migration deleting the three seed rows, retiring that last migration, and dropping SystemTeamType.Board/Asociados/Colaboradors, their SystemTeamIds and the GovernanceBodyTeamIds skips. 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 ITeamManagementService method, two data migrations and one Governance constructor dependency.

Checklist

  • Review tier stated: tier:standard.
  • No migration edited by hand: no migration in this PR. The Teams snapshot's ProductVersion line is EF's own output from dotnet ef migrations remove of the dropped migration.
  • No NOT NULL column added to an existing table.
  • Section labeled: Teams, Governance.
  • Targeting main on peterdrier/Humans.
  • Branched off origin/main.
  • Issue refs are qualified.
  • NuGet packages updated? none.
  • New project rule? none.
  • Reuse-first checked.
  • Build + test pass locally: full build; Teams (751), Governance (568), Google (852) and Web architecture (861) tests.
  • Nav coverage no page.
  • No magic strings.
  • Dates/times via NodaTime.

https://claude.ai/code/session_0186neA5CPnR7UJzbhtFJzTs


Generated by Claude Code

…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
@peterdrier

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@coolify-nuc-humans

coolify-nuc-humans Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the db PR includes EF Core migration label Nov 28, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T11:27:32.747074Z 860e749 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Reviewed commit acf34fa. 1 inline finding(s) posted.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: acf34fa75b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
@peterdrier peterdrier changed the title Delete the Board, Asociados and Colaboradors team rows (PR 5b) Retire the done governance data migrations (PR 5b) Nov 28, 2026
@peterdrier

Copy link
Copy Markdown
Owner Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 860e7493c8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@peterdrier

Copy link
Copy Markdown
Owner Author

The report check fails because the merge base (main at 61b0c73) doesn't compile: TicketCheckoutService.cs:1042 still names TicketingSettingsAuditEntityType, so reforge refuses to score the base. This PR's own head builds clean (it carries the same one-line fix as #2774). The check will pass once #2774 lands and this branch picks it up.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown

This PR has a merge conflict with main. Merge origin/main into the branch and resolve the conflicts. The merge-conflict label comes off automatically once it merges cleanly.

…-7jp5tr

# Conflicts:
#	tests/Humans.Governance.Tests/Services/GovernanceBodyLinksServiceTests.cs
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

PR Surface Report

Compared 7b967745...838ac95c. Scored with reforge 0.34.0.

Summary: 19 changed file(s) | EF migrations: 0 added file(s), max 0/1 per context

Reforge Surface Score

metric base head delta
total 77042 76969 -73
surface 17804 17798 -6

Section Deltas

section base head delta
Governance 2454 2416 -38
Teams 3709 3673 -36
Google 4320 4321 +1

Section Size & Complexity Deltas

section LOC delta files delta classes delta cognitive p95 delta
Google +1 0 0 0
Governance -73 0 0 0
Teams -46 0 0 0
Corpus -118 0 0 0

Corpus is the solution-wide rollup (same source as Corpus Size & Complexity below), not a sum of the section rows above - cognitive p95 in particular doesn't compose across sections.

Rule Deltas

rule base head delta
sectionSize 9500 9478 -22
methodCount 19476 19458 -18
classSize 6976 6961 -15
methodComplexity 22140 22128 -12
crossSectionReadInterface 4572 4566 -6

Corpus Size & Complexity

metric base head delta
locProd 201934 201816 -118
methods 9056 9046 -10

At head: largest class Service, most complex method Service.BookOneTransferAsync.

Published Write Surface

16 of 57 sections publish write capability, 48 interfaces (0).

Interface Surface

No new interfaces or interface members.

Diff Size

bucket added deleted
code 12 148
migrations 1 1
tests 23 96
docs 8 10

@peterdrier peterdrier mentioned this pull request Nov 28, 2026
2 tasks done
@github-actions

Copy link
Copy Markdown

This PR has a merge conflict with main. Merge origin/main into the branch and resolve the conflicts. The merge-conflict label comes off automatically once it merges cleanly.

…-7jp5tr

# Conflicts:
#	tests/Humans.Governance.Tests/Services/GovernanceBodyLinksServiceTests.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

db PR includes EF Core migration Governance Teams tier:standard Normal review cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants