Skip to content

fix(db): prepare deletion catalogs for mention groups - #9587

Closed
LordMelkor wants to merge 1 commit into
block:mainfrom
LordMelkor:sigil/mention-groups-db-compat
Closed

LordMelkor wants to merge 1 commit into
block:mainfrom
LordMelkor:sigil/mention-groups-db-compat

Conversation

@LordMelkor

@LordMelkor LordMelkor commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Community deletion rejects tenant tables that are absent from its approved catalog. Register the two forthcoming Mention Groups tables before the feature migration introduces them, so deletion and approval forwarding keep working during the rollout.

Adds mention_groups and mention_group_commands to both pending scoped tables and approval-forward tables. This change creates no tables and changes no schema. Deploy it to every serving relay, deletion executor and operator tool before installing the feature migration.

Related issue

Preparation for relay-owned Mention Groups. Duplicate search found #2791 and #8819; the subsequent feature PR will explain the replacement contract. This PR only prepares the database compatibility catalogs.

Testing

All 216 buzz-db unit tests passed, as did the real PostgreSQL compatibility journey covering optional tables, approved expansion, tenant purge and bystander preservation. Mandatory push hooks passed, including Rust tests and Desktop Tauri checks. Independent agent review found no blockers.

A broader just ci run stopped at mobile formatting outside this change; human acceptance and fleet deployment remain pending.

Merge order

This PR is first in the mention-groups chain. Merge and deploy it first.

  1. fix(db): prepare deletion catalogs for mention groups #9587 (this PR): database compatibility. Deploy it to every serving relay, deletion executor and operator tool.
  2. feat(relay): add shared mention groups with durable CAS commands #9589: shared mention groups in the relay. Its branch contains this PR's commit.
  3. feat(communities): community mention groups in @ and Add people buzz-app#3655: community mention groups in the app. It also needs feat(composer): one chip for several recipients, sent as @label buzz-app#2878, and it ships only after feat(relay): add shared mention groups with durable CAS commands #9589 is deployed.

This PR depends on no other open PR.

Co-authored-by: Sigil <06114f072cf21e50fcd4133ab21346cdb1f74ee16d853a9729995fa6c03a251c@buzz.block.builderlab.xyz>
Signed-off-by: Krish Ray <kray@block.xyz>
@LordMelkor
LordMelkor requested a review from a team as a code owner November 16, 2026 19:30
@github-actions

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is 6f438202a06abc7e6535c1071fb43b9c78ec900a...6a5d7a2129c85eafe14898af14b7ed866a6f6a32.
A new review must complete for this exact range. When manual authorization
is required, a user with write access must comment exactly
@buzz-security-review 6a5d7a2129c85eafe14898af14b7ed866a6f6a32 to authorize a new review.
Any previous review applies only to its recorded range.

joahg
joahg previously approved these changes Nov 16, 2026

@joahg joahg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤖 Approving. Registering mention_groups and mention_group_commands in both PENDING_SCOPED_TABLES and APPROVAL_FORWARD_TABLES before the feature migration lands follows the same expand-first pattern as the identity_retirement_* entries, and it changes no schema. Entries stay sorted.

The ordering note in the description matters: this has to be deployed to every relay, deletion executor and operator tool before the Mention Groups migration runs. It would help to restate that in the feature PR so whoever merges it checks.

@joahg
joahg dismissed their stale review November 17, 2026 18:58

🤖 Withdrawing this automated approval. Contributions from outside the core maintainers need a review from a human maintainer, so this approval should not count toward merging.

@LordMelkor

Copy link
Copy Markdown
Contributor Author

🤖 Closing for now. This prepared the deletion catalogs for #9589's mention-group tables, and #9589 is closed while Mention Groups is redesigned around community-scoped NIP-AR artifacts (#9638). If the finished redesign still needs it, I'll reopen it then.

@LordMelkor LordMelkor closed this Nov 18, 2026
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