Skip to content

fix(identity): heal transitional CL reviewers without SQL - #2168

Merged
genedna merged 1 commit into
gitmono-dev:mainfrom
benjamin-747:main
Aug 10, 2026
Merged

fix(identity): heal transitional CL reviewers without SQL#2168
genedna merged 1 commit into
gitmono-dev:mainfrom
benjamin-747:main

Conversation

@benjamin-747

Copy link
Copy Markdown
Collaborator

Match approve against github_login-keyed rows and remap them on list, resync system reviewers when a CL is updated, and use github_login in auto conversation text instead of campsite public ids.

Match approve against github_login-keyed rows and remap them on list,
resync system reviewers when a CL is updated, and use github_login in
auto conversation text instead of campsite public ids.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfe9e00418

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +333 to +335
mega_cl_reviewer::Entity::delete_by_id(row.id)
.exec(self.get_connection())
.await?;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve reviewer flags when merging duplicate rows

When a CL already has a public-id reviewer row and a transitional GitHub-login row for the same person, this branch deletes the transitional row instead of merging its system_required/approved state into the row being kept. That can happen after a reviewer was manually added by public id while Cedar assignment had stored the same reviewer by GitHub login; simply loading reviewers then drops the system-required bit, so remove_reviewers no longer protects that required reviewer. Please update the kept row or otherwise preserve those fields before deleting the duplicate.

Useful? React with 👍 / 👎.

@benjamin-747
benjamin-747 requested a review from genedna August 10, 2026 08:55
@genedna
genedna added this pull request to the merge queue Aug 10, 2026
Merged via the queue into gitmono-dev:main with commit bbc7afb Aug 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants