Add configurable relay banners - #7713
Draft
bradseiler wants to merge 4 commits into
Draft
bradseiler wants to merge 4 commits into
bradseiler wants to merge 4 commits into
Conversation
added 3 commits
September 17, 2026 15:06
Signed-off-by: coder 0 <d97ebdbb198c7237c94f84ea8bb8a73583ea067407eebd0062abbb3962527fb1@buzz.block.builderlab.xyz>
Signed-off-by: coder 0 <d97ebdbb198c7237c94f84ea8bb8a73583ea067407eebd0062abbb3962527fb1@buzz.block.builderlab.xyz>
Signed-off-by: coder 0 <d97ebdbb198c7237c94f84ea8bb8a73583ea067407eebd0062abbb3962527fb1@buzz.block.builderlab.xyz>
🔐 Codex Security Review
|
Signed-off-by: coder 0 <d97ebdbb198c7237c94f84ea8bb8a73583ea067407eebd0062abbb3962527fb1@buzz.block.builderlab.xyz>
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.
Summary
Relay admins need a way to show time-limited notices to all users or selected communities. This PR adds the relay protocol, persistence, admin endpoints, delivery rules, acknowledgement tracking, and OpenTelemetry counters for those notices.
The relay emits replaceable kind
13536events, enforces display caps and dismissals, clears old scopes before replacements, and fans updates across relay instances through Redis.Related issue
None found.
Testing
The integrated live-local gate passed at test artifact
42fd717d32d9be8312475e6dc73d97199bcc25cf. It used real admin HTTP requests, WebSocket clients, two relay instances, isolated Postgres and Redis, and both greenfield and non-empty databases. It verified create, severity payloads, retry idempotency, display caps, dismissal, scope replacement order, disable order, cross-instance delivery without echo duplicates, and metric increments only for state changes.This draft was pushed with
--no-verifyafter the latest-main pre-push gate failed in unrelated timing-sensitivebuzz-acptests under parallel load. The same tests failed before this rebase, and the banner diff does not touchbuzz-acp. The latest-main rebase exposed a migration version collision with main’s storage accounting migration. Commit7d768e465renumbers the unchanged banner migration to0047and updates the embedded migration inventory; the fullbuzz-dbpackage suite passes at that exact head.Generated with Codex