Skip to content

fix(harvester): allow metadata-only create when INSPIRE has no files - #962

Merged
kpsherva merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/harvester-import-missing-files
Sep 4, 2026
Merged

fix(harvester): allow metadata-only create when INSPIRE has no files#962
kpsherva merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/harvester-import-missing-files

Conversation

@TahaKhan998

Copy link
Copy Markdown

closes #952

when we harvest an inspire record that has no files, we try to mark it as metadata only (no files needed). cds normally doesnt let people do that, and the harvester got blocked by the same rule, so the record still looked like it should have files, had none, and failed on publish. this pr just adds InspireHarvester() to can_manage_files so those records can be imported as metadata only while normal users still cant.

@kpsherva
kpsherva merged commit 84fc63f into CERNDocumentServer:master Sep 4, 2026
3 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.

harvester: import records with missing files as well

3 participants