Skip to content

Implement NCSBE current-cycle election data#173

Closed
ThatXliner wants to merge 1 commit into
mainfrom
codex/ncsbe-current-cycle
Closed

Implement NCSBE current-cycle election data#173
ThatXliner wants to merge 1 commit into
mainfrom
codex/ncsbe-current-cycle

Conversation

@ThatXliner

Copy link
Copy Markdown
Collaborator

Closes #165.

What changed

  • Adds a registered NCSBE scraper for current-cycle candidates, referenda, and precinct results.
  • Adds deterministic CSV, ZIP/TSV, and referendum-PDF parsing with Durham fixtures.
  • Adds provenance-first election persistence and a migration.
  • Adds civic.getNcElectionData with county totals, optional precinct data, and Civic matching.
  • Excludes voter-level data and candidate contact/address fields.

Validation

  • DB, API, and scraper typechecks.
  • 17 scraper/contract tests and 8 API tests.
  • API lint and diff checks.
  • Live official-file parse: 8,276 candidate rows and 103,515 result rows.

Notes

A live database migration/import was not run because a disposable database was unavailable. Shared schema and registration files overlap with the other scraper PRs.

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
billion-nextjs Ready Ready Preview, Comment Jul 22, 2026 3:38pm

@ThatXliner

Copy link
Copy Markdown
Collaborator Author

Superseded by consolidated PR #181, which combines the North Carolina and Texas current-cycle scrapers and resolves the shared local-government schema/API overlap.

@ThatXliner ThatXliner closed this Jul 22, 2026
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.

[Data Source] Ingest NCSBE candidates, referenda, and precinct election results

1 participant