What if

Example MR comment: Incident and injury statuses added and relabelled in the frontend (20-22 Jul)

A real past change, replayed: the comment the developer would have seen on the merge request that carried it, had the guard existed.

  • Source: slabcom/frontend fe909034, 602d7fce, 46e97708, e541142f (every file of the four commits)
  • What happened: The frontend added two approval statuses for incidents and injuries (OPEN, REVIEW) and renamed how the others are shown (Pending -> Draft, Approved -> Approved & Closed). No migration and no column name in the diff: the values are TypeScript enum members next to the incident and injury models, and the column is the generic status. Superset kept showing the stored values until the datasets got a status mapping (the CASE i.status ... AS status_display now in datasets 29 and 31); someone asked by hand before release whether Superset was affected. Caught by the code signal rules (W07).
  • Verdict: Affected: Affected 3, Safe 47. Expected labels: eval/cases/r08_2026-07-20_frontend_status_relabel.json.
  • Rerun: uv run mr-check --case r08

Report impact check: Affected. This MR changes data that 3 certified Superset dashboards show. The reports keep working, but their numbers or labels can change.

Why:

  1. model.ts: The app can now save 2 new status values for incidents: OPEN (shown as 'Open') and REVIEW (shown as 'Under Investigation'). Reports that group, count or filter incidents by status will show them as new categories, and some rows will move out of the categories they are in today. The app also renames how status is shown: PENDING is now shown as 'Draft' (was 'Pending'); APPROVED is now shown as 'Approved & Closed' (was 'Approved'). The stored values stay the same, so reports keep showing PENDING and APPROVED and no longer match the names users see in the app. (lines: model.ts line 15, model.ts line 16, consts.ts line 11, consts.ts line 26)
  2. model.ts: The app can now save 2 new status values for injuries: OPEN (shown as 'Open') and REVIEW (shown as 'Under Investigation'). Reports that group, count or filter injuries by status will show them as new categories, and some rows will move out of the categories they are in today. The app also renames how status is shown: PENDING is now shown as 'Draft' (was 'Pending'); APPROVED is now shown as 'Approved & Closed' (was 'Approved'). The stored values stay the same, so reports keep showing PENDING and APPROVED and no longer match the names users see in the app. (lines: model.ts line 14, model.ts line 16, consts.ts line 11, consts.ts line 26)
DashboardVerdictCauseCharts it touches
IncidentsAffected1Incidents Details
WHS&E DashboardAffected1Incidents by Status, Incidents by Type, Incidents by Type/Status
InjuriesAffected2Injuries Details
How the change reaches each dashboard
  • Incidents (Affected, medium confidence): site_management_services.public.incidents → dataset "incidents" → 1 chart: Incidents Details
  • WHS&E Dashboard (Affected, medium confidence): site_management_services.public.incidents → dataset "incidents" → 3 charts: Incidents by Status, Incidents by Type, Incidents by Type/Status
  • Injuries (Affected, medium confidence): site_management_services.public.injuries → dataset "injuries" → 1 chart: Injuries Details

Checked against the 50 published and certified Superset dashboards (map built 2026-11-17) by the Report Impact Checker AI Tool (read-only). Questions: Lucas (BI).