Skip to content

fix: reject CSV export pages missing dataset_version column - #81

Open
irfanJamalP wants to merge 1 commit into
prooflinedev:mainfrom
irfanJamalP:investigate/csv-export-header
Open

irfanJamalP wants to merge 1 commit into
prooflinedev:mainfrom
irfanJamalP:investigate/csv-export-header

Conversation

@irfanJamalP

@irfanJamalP irfanJamalP commented Nov 22, 2026 •

Copy link
Copy Markdown

Summary

Fixes CSV export validation so that a response with a missing dataset_version column is rejected even when the page contains no data rows.

Previously, the decoder validated dataset_version only when iterating over decoded rows. A header-only CSV response could bypass this check.

Changes

  • Require the dataset_version column in CSV export headers.
  • Add regression coverage for rejecting a header without dataset_version.
  • Verify that a valid header-only CSV response remains accepted.

Verification

  • CSV export tests: 16 passed.
  • Repository tests excluding the HTTP deadline test group: 217 passed, 4 deselected, 8 subtests passed.
  • Ruff lint and formatting checks passed.
  • git diff --check passed.

The full Windows test suite did not pass consistently because of an HTTP deadline test that also failed intermittently on the unmodified upstream baseline. The complete suite still requires validation in GitHub Actions on Linux.

Notes

This change does not alter NDJSON handling.

This branch has not been deployed

No deployments
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