Skip to content

Update BNF data importer to handle ISP CSV headers - #3210

Draft
KatieB5 wants to merge 2 commits into
mainfrom
KatieB5/update-import-script-for-isp-csv-headers
Draft

Update BNF data importer to handle ISP CSV headers#3210
KatieB5 wants to merge 2 commits into
mainfrom
KatieB5/update-import-script-for-isp-csv-headers

Conversation

@KatieB5

@KatieB5 KatieB5 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

We previously (2f6905e, and in #3167) updated the BNF data importer to handle the new CSV column header format used by the ODP (e.g. BNF_CHAPTER) . However, the BNF releases from 2024-10-01 to 2025-02-01 are only available as CSVs using the old ISP column header format (e.g. BNF Chapter).

This update transforms the CSV field names before importing so that we support both the old ISP and new ODP column header formats.

We previously updated the importer to handle the new CSV column header
format used by the ODP (2f6905e). However, the BNF releases from 2024-10-01 to
2025-02-01 are only available as CSVs using the old ISP column header format.

This update transforms the CSV field names before importing so that we
support both the old ISP and new ODP column header formats.
Add mock ISP-format BNF data and test that it can be imported successfully.

Keep the existing import and error-handling tests using the ODP-format fixture,
as these test general importer behaviour rather than differences between the CSV header formats.

Update the ODP fixture to use the correct YEAR_MONTH column name and clarify the fixture documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant