Skip to content

feat(catalog): add publication columns (doi, pmid, publication_year, publication_verify_status) - #17

Merged
timtreis merged 1 commit into
mainfrom
feat/catalog-publication-columns
Oct 10, 2026
Merged

timtreis merged 1 commit into
mainfrom
feat/catalog-publication-columns

Conversation

@timtreis

Copy link
Copy Markdown
Member

What

Adds doi, pmid, publication_year, publication_verify_status (all optional string) to _catalog_schema.CATALOG_COLUMNS.

Why (blocker found during the publication-metadata rollout)

The engine backfilled these four fields onto all 1690 live artifacts, and inventory_to_catalog builds them — but it conforms the DataFrame to CATALOG_COLUMNS, which didn't include them, so they were silently dropped from catalog.parquet. The published catalog therefore had no publication data and the website couldn't render the verify badge / completeness / /stats verification panel (which already expect doi/publication_verify_status).

Non-required, so datasets without a publication stay valid (typed nulls).

Test

tests/test_catalog_schema.py, tests/test_catalog.py: 64 passed. No column-count assertion to update (only subset invariants).

After merge

Reinstall sddb in the engine publish env on the HPC and re-run sddb publish-catalog --instance scverse/spatialdata-db --yes — the four columns will then populate (1213 with DOI, 1044 verified).

…publication_verify_status)

The engine's publication-verification backfill writes doi/pmid/publication_year/
publication_verify_status onto every artifact, but inventory_to_catalog conforms the catalog to
CATALOG_COLUMNS, which lacked these four — so they were silently dropped from catalog.parquet and
never reached the website. Add them as optional (non-required) string columns. Website build
(verify badge, completeness, /stats panel) reads them from the catalog.
@codecov

codecov Bot commented Oct 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.91%. Comparing base (a009a14) to head (212c56b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage   91.91%   91.91%           
=======================================
  Files          19       19           
  Lines        1460     1460           
=======================================
  Hits         1342     1342           
  Misses        118      118           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timtreis
timtreis merged commit a6e2151 into main Oct 10, 2026
5 checks passed
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