docs: plan for inspection status beyond Ofsted's school data (H4)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TudorandClaude Opus 5.5 committed 2026-10-13 21:00:54 +01:00
1 parent 5f7528b399
commit 000626c5d6
2 files changed
+1982

No files matched your search

@@ -227,3 +227,23 @@ E2E.
provider's result; the URN match is always tried first.
- **"Not yet inspected" disappears briefly** if PR 2 is promoted before the
DAGs run (fallback query). It never appears wrongly.
## Amendments (implementation plan, 2026-10-13)
- **UKPRN comes from a new view, `stg_gias_ukprn`,** on the raw GIAS source,
not from a `ukprn` column on `stg_gias_establishments`. A `ref` to
`stg_gias_establishments` from the Ofsted models would put them in the daily
build's `stg_gias_establishments+` selection, where their Ofsted parents are
not built (`pipeline/tests/test_dag_selectors.py`). The daily build selects
`stg_gias_ukprn` by name; `stg_gias_establishments` gains only
`inspectorate_name`.
- **A report card is recognised by `rc_inspection_date` as well as by its area
labels** (`hasReportCard`), on the school page and in compare. An FE report
card carries a safeguarding result and no school areas, so the label test
alone read it as "No overall grade".
- **The compare page's Ofsted link is fixed.** `ofsted_page_url` built
`https://reports.ofsted.gov.uk/provider/21/{urn}`; category 21 is primary
schools, so the link 404s for every secondary, special and FE school
(checked: 137086, 101099, 130457, 145175). It now uses
`…/inspection-reports/find-inspection-report/provider/ELS/{urn}`, which
redirects to the right category and is what the school page already uses.