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> |
||
|---|---|---|
| .. | ||
| architecture.md | ||
| autotask_rest_api.md | ||
| backupchecks_autotask_integration_functional_design_living_document.md | ||
| backupchecks_autotask_integration_implementation_breakdown.md | ||
| backupchecks_autotask_integration_phase_2_implementation.md | ||
| changelog-claude.md | ||
| changelog.md | ||
| manifest.md | ||
| migrations.md | ||
| reporting-proposal.md | ||