Skip to content

fix(harvester): require ForCDS with Literature/CDS Hidden collections - #1113

Merged
kpsherva merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/harvester-forcds-and-collections
Dec 2, 2026
Merged

kpsherva merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/harvester-forcds-and-collections

Conversation

@TahaKhan998

@TahaKhan998 TahaKhan998 commented Dec 1, 2026 •

Copy link
Copy Markdown

the harvester query was cds hidden OR forcds, so hidden records without forcds could still get pulled. those arent for us until curators mark them.

Summary by CodeRabbit

  • Bug Fixes
    • Updated INSPIRE record retrieval so both “CDS Hidden” and “Literature” records must belong to the “ForCDS” set. This keeps retrieved records within the intended collection and set criteria.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

An error occurred during the review process. Please try again later.

Walkthrough

The INSPIRE reader now queries for records in either the CDS Hidden or Literature collection that also belong to the ForCDS OAI set. Pagination URL and HTTP 400 test expectations are updated.

Changes: INSPIRE query

Layer / File(s) Summary
Collection and set query
site/cds_rdm/inspire_harvester/reader.py, site/tests/inspire_harvester/test_harvester_job.py, site/tests/inspire_harvester/test_reader.py
The reader query now combines the CDS Hidden or Literature collection with the ForCDS OAI set. Pagination URL and HTTP 400 test expectations match the updated query.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: kpsherva

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@kpsherva
kpsherva merged commit a3c7d11 into CERNDocumentServer:master Dec 2, 2026
4 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.

2 participants