Skip to content

fix(harvester): error if EP number is not minted in CDS - #993

Open
TahaKhan998 wants to merge 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-970-unminted-ep-number
Open

TahaKhan998 wants to merge 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-970-unminted-ep-number

Conversation

@TahaKhan998

Copy link
Copy Markdown

closes #970

if inspire sends a cern-ep approval number that was never minted in cds pidstore, the harvester errors so curators can see someone may be bypassing the cds ep workflow.

@TahaKhan998
TahaKhan998 force-pushed the fix/issue-970-unminted-ep-number branch from 7b20b10 to aabff75 Compare September 28, 2026 09:05
return list(
retrieve_identifiers(
stream_entry.entry.get("metadata", {}).get("identifiers", []),
"apprn",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you make sure the mapper will store it with correct scheme (apprn)? Because the only test you are adding here is the validator test, not the correct mapping

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.

harvester: raise error if we have CERN-EP approval number is not already created in the DB

2 participants