Repository navigation
Conversation
… test #9581 added a sender parameter to Db::update_channel, but single_table_guard_channels_remain_tenant_bound_without_trigger still called it with three arguments, so buzz-db tests no longer compiled on main. Pass the channel's creator; both calls only rename the channel. Also mark the file's existing local dev database URL as test-only for the secrets scanner, as test_support.rs already does. Signed-off-by: Tom Brow <tomb@squareup.com> Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@buzz.block.builderlab.xyz>
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. |
brow
force-pushed
the
fix-deletion-update-channel-sender
branch
from
November 17, 2026 19:04
cee155b to
4bd9709
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#9581 added a
senderparameter toDb::update_channel, butsingle_table_guard_channels_remain_tenant_bound_without_triggerincrates/buzz-db/src/store/deletion.rsstill called it with three arguments. buzz-db tests no longer compile on main (error[E0061]), so clippy and the unit, Windows and PostgreSQL lanes fail on every PR rebased onto it.This passes the channel's creator as the sender in both calls. Both calls only rename the channel, so the private-to-open rule doesn't come into play and the test still checks what it did before: a cross-community update is rejected and a same-community update succeeds.
The commit hook's secrets scanner also flagged the file's existing local dev database URL (
buzz:buzz_dev@localhost), so that line gets the samesadscan:disablecommenttest_support.rsalready uses.Validation
cargo test -p buzz-dbcompiles and passes locally (Postgres-only tests ignored there; CI's PostgreSQL lane runs this one).Regressions
None: test-only change.