Skip to content

fix harvester document type splitting#855

Open
TahaKhan998 wants to merge 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-849-document-type-splitter-feedback
Open

fix harvester document type splitting#855
TahaKhan998 wants to merge 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-849-document-type-splitter-feedback

Conversation

@TahaKhan998

Copy link
Copy Markdown

Part of #849, covering the Logic checks and tests section. This prevents duplicate versions when multiple INSPIRE document types map to the same CDS-RDM resource type, adds a regression test for that case, removes the unused _PREPRINT_DOC_TYPES constant, and reorganizes the record-matching filters into named dataclasses without changing their behavior or priority.

return [
ParentMatchFilter(
value=cdsrdm_id,
query=[dsl.Q("term", **{"parent.id": cdsrdm_id})],

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.

I think the point was to also contain the query inside the respective filter class, so that we simplify the code here

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I’ve moved each query into its respective filter class

@TahaKhan998
TahaKhan998 force-pushed the fix/issue-849-document-type-splitter-feedback branch from 70370e5 to f65e0ff Compare July 17, 2026 08:01
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