Repository navigation
Conversation
Preserve resolved alert history and allow a recurrence to open one new alert. Batch alert bookkeeping without rewriting unchanged rows; expose resolved_at and filter active quarantines in Directus. Refs PRD-1201 Published from local commits 5b311e1, c9f9a23, and 2408391 through the GitHub connector because the environment blocks shell Git transport. The published tree exactly matches local HEAD 2408391483a9ef757b21b60d266c230601da2250.
Keep the current chapter image-copy scripts and operator documentation while adding the snapshot alert proof command and episode history notes.
Member
Author
|
@coderabbitai review |
✅ Action performedReview finished.
|
Order content reads and alert changes with a transaction-scoped advisory lock. Remove the grace period so a brief observed recovery ends its episode immediately. Savepoints preserve public snapshot delivery and independent alert kinds when a queue statement fails. Refs PRD-1201
This branch has not been deployed
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
A quarantined record or withheld chapter image previously alerted once per record forever. Migration 030 adds
resolved_atand scopes the existing unique indexes to open episodes, retaining notification history. A recovery resolves the episode, and a later recurrence opens one new alert.resolved_atin Directus and show only open episodes in the Quarantined records bookmark. Unchanged renders do not rewrite notification rows.Refs PRD-1201.
Validation
On the exact PR-head checkout plus these fixes:
bun run typecheckbun run test:agent— 78 agent tests and 14 moderation testsbun run test:content— 33 testsbun run build— 47 pagesbun run plans:validated5dc288f5f69082246dd16353b4eb5033f5dc3f7.The previous scratch database proof passed during implementation. The updated proof now includes immediate recurrence and deliberately overlapping Postgres renders. It has not run on the new implementation: local Postgres is unavailable, and the user requested proceeding with tests that do not need it. Live Directus field/bookmark proof also remains pending. Rendered browser proof: none.
CodeRabbit approved the preceding head
ad3c081without actionable findings. The two additional correctness defects found in our review are fixed by9bf6e9d; that approval is not evidence for the latest head.Release
The Network repository uses
mainand has nodevelopbranch. Applying migration 030, merging/deploying, and rerunning Directus setup require separate authorization. Merging tomainauto-deploys the Fly agent. After applying the migration, clear the Directus cache and rundirectus:content:setupanddirectus:studio:setup.Sensitive manifest change in the overall PR: one test script in
package.json, with no dependency or lockfile change. The review fixes change only five runtime/test/documentation files.Publication uses the connected GitHub API because shell Git transport/signing is unavailable. The isolated checkout is kept at the exact published head; the original local branch history is preserved.