GeezerVison is showing github.com — fix(pm-aggregator): date notification sends by the live ledger's at column (#15090) by developing-today-fleet[bot] · Pull Request #15124 · developing-today/code
Conversation
What
Fixes #15090 — the aggregator's notifications roll-up dated zero sends against the live Turso ledger.
pm-stack/aggregator/src/notifications.ts: sendTimestamp falls back sent_at → created_at → at, matching the hosted port in pm-stack/console/edge/src/ledger-pages.ts (which dates all 271 live rows).
pm-stack/aggregator/src/alerts.ts: NotificationSendRow gains the optional at column (rows arrive via select *, so the value was already present at runtime — it just was not read).
pm-stack/aggregator/test/notifications.test.ts: two regression tests — an at-only row (the live ledger's shape) is dated by at with roll-up undated = 0; created_at still wins over at when both are present.
Verification
Acceptance mapping (from #15090)
-
sendTimestamp falls back to at after sent_at/created_at
-
at-only rows date: roll-up counts them, 0 undated
- Regression test fails on old code
- Existing precedence preserved (
sent_at > created_at > at)
Closes #15090
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-25T13:38:28Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…olumn (#15090)
sendTimestamp read only sent_at/created_at, but the live Turso ledger's
defaulted send-time column is named at — so against the live ledger every
sent row counted as undated and the /notifications roll-up was empty.
Fall back to at after created_at (the hosted port in
console/edge/src/ledger-pages.ts already reads this precedence), add at
to NotificationSendRow, and add regression tests for the at-only row
shape and created_at-over-at precedence.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f65d78e2-82ed-4256-9b08-89c8afada2ce
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|