Repository navigation
Description
Watch in BugReels (the Incidents list opens at 0:21 and shows the empty cell at 0:25, the dashboard table is at 0:51)
An incident saved without "Occurred at" gets a NULL occurred_at. The form says the created timestamp is used when the field is empty, but the dashboard reads the raw column. The Incidents list and the dashboard "Open incidents" table show an empty time for it and list it below older incidents, so the newest incident ends up at the bottom.
Reproduced on the 3.x-dev demo (https://v3.cachethq.io/dashboard), which tracks main at c5f06fe.
Steps:
- Create an incident with "Occurred at" set to
2026-10-03 12:00. - Create a second incident and leave "Occurred at" empty.
- Open Incidents in the sidebar, then Dashboard.
Expected: the second incident shows its created time and is listed first, as the helper text says: "The incident's created timestamp will be used if left empty."
Actual: its "Occurred at" cell is empty in the list and in the "Open incidents" table, and it is listed after the older incident. GET /api/incidents shows "occurred":{"human":null,"string":null} for it.
Cause: the Incidents table sorts and renders the raw column:
| ->orderByDesc('occurred_at')) |
| ->orderByDesc('occurred_at') |
The widget renders occurred_at with since(), which is blank for NULL (only the tooltip uses $record->timestamp):
core/src/Filament/Widgets/OpenIncidents.php
Lines 41 to 44 in c5f06fe
| TextColumn::make('occurred_at') | |
| ->label(__('cachet::dashboard.open_incidents.headers.occurred_at')) | |
| ->since() | |
| ->tooltip(fn (Incident $record): string => $record->timestamp->toDayDateTimeString()), |
Incident::timestamp already falls back to created_at, and the public IncidentTimeline handles NULL with whereNull('occurred_at'). The dashboard does not. The sort came in with #446 and the widget with #370. Neither mentions NULL occurred_at.
This report was drafted with Claude Code (Claude Sonnet 5.5). The bug was reproduced on the demo, and the cause was checked against the linked source.
Activity