Example MR comment: New value in enum_projects_status, read through a foreign table's local enum copy
A hand-made change from the eval set: the comment a developer would see on a merge request making it.
- Source: hand-made (mirrors the 6 production foreign tables with local enum copies found on 13 Nov)
- What happened: site_management_services imports project_services projects as foreign table project_schema.projects, and declares status with its own copy of enum_projects_status. postgres_fdw converts every value it reads into that local type, so once a project has the new status, any query that reads status through the foreign table fails until the value is added to the copy too. Written after the enum-copy rule was found (F06), so it checks the rule rather than proving it independently.
- Verdict: Broken: Broken 1, Safe 49. Expected labels:
eval/cases/h12_new_project_status_through_enum_copy.json. - Rerun:
uv run mr-check --case h12
Report impact check: Broken. This MR would break 1 certified Superset dashboard.
Why: h12.js: foreign table site_management_services.project_schema.projects reads status with its own copy of the enum type (enum_projects_status): once a row has the new value 'ON_HOLD', reading it fails until the value is added in site_management_services too (ALTER TYPE enum_projects_status ADD VALUE ...).
| Dashboard | Verdict | Charts it touches |
|---|---|---|
| Surveys | Broken | Answer distribution per question, Avg response time by campaign, Campaign performance table +18 |
How the change reaches each dashboard
- Surveys (Broken, medium confidence):
site_management_services.project_schema.projects→ dataset "DATASET_Survey Responses" → 21 charts: Answer distribution per question, Avg response time by campaign, Campaign performance table, Chase-up list, Comments table, Delivery funnel +15 more
Suggested fix (a draft to discuss; nothing is changed automatically):
- In
site_management_services, foreign tableproject_schema.projectsuses its own copy of the enum typeenum_projects_status: add the value there too (ALTER TYPE enum_projects_status ADD VALUE 'ON_HOLD';), or reading a row with the new value fails. - Decide for each filter that lists values (
IN (...),CASE WHEN) in the report SQL whether 'ON_HOLD' belongs there; charts that group by it get a new category.
Checked against the 50 published and certified Superset dashboards (map built 2026-11-12) by the read-only report impact checker. Questions: Lucas (BI).