The Run Checks popup modal was still showing resolved tickets for runs where they were never actually linked. This was the last remaining location using date-based ticket logic. Root cause: The /api/job-runs/<run_id>/alerts endpoint used the old date-based logic that showed all tickets scoped to the job if active_from_date was before the run date. This ignored whether the ticket was actually linked to that specific run. Changes: - Replaced date-based query with explicit ticket_job_runs join - Replaced date-based query with explicit remark_job_runs join - Now only returns tickets/remarks actually linked to this run - Removed unused run_date, job_id, ui_tz query parameters - Simplified queries: no timezone conversions, no date comparisons Result: Resolved tickets no longer appear in popup unless they were linked to that run when they were still open. Completes transition from date-based to explicit-link ticket system across entire UI. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| containers/backupchecks | ||
| deploy | ||
| docs | ||
| .gitignore | ||
| .last-branch | ||
| build-and-push.sh | ||
| LICENSE | ||
| README.md | ||
| TODO-audit-logging.md | ||
| TODO-documentation.md | ||
| TODO-reports-improvements.md | ||
| version.txt | ||