Repository navigation
notices(core): persisted in-app notices with backup failures as first producer - #11
Merged
Merged
Conversation
… producer
Establish the notices mechanism the architecture requires (workflow and
operational events shown in the application, never dependent on email):
- migration 0003: recipient-scoped notice table (kind, message,
created/read instants)
- notices service: creation for capability holders with per-recipient
dedup (no new notice of a kind while one is unread), recipient-scoped
listing and mark-read — scoping lives in the queries, so no path can
touch another user's notices
- automatic-backup failures now notify every manage_users holder as a
persisted notice in addition to the log; repeated failures stay at
one unread notice per administrator until acknowledged
- HTTP: GET /api/notices and POST /api/notices/{id}/read; a foreign or
already-read notice is a 404 indistinguishable from a missing one
- shell: notices panel on the status page with mark-read, and an
unread-count badge in the header
- 3 new integration tests (producer dedup lifecycle, end-to-end
recipient scoping over the API, auth requirement); browser E2E
asserts the panel
Closes #10
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.
Primary Issue
Closes #10
Problem And Outcome
The architecture requires workflow notices to be persisted and shown in the application, never dependent on email — and a failing automatic backup currently reaches only the server log a small center may never read. After merge, backup failures land in every administrator's interface as persisted notices, on plumbing later training-workflow milestones will reuse.
Changes
noticetable (kind, message, created/read instants)manage_usersholder in addition to loggingGET /api/notices,POST /api/notices/{id}/read; a foreign or already-read notice returns a 404 indistinguishable from a missing oneScope
Verification
Review And Merge Notes
notices.rsand the 404-indistinguishability choice for foreign notices