Skip to content

Comments

MODLD-980: Add test to ensure that a fingerprint rule exists for all type combinations defined in marc4ld#203

Open
pkjacob wants to merge 1 commit intomasterfrom
pjacob/MODLD-980_2
Open

MODLD-980: Add test to ensure that a fingerprint rule exists for all type combinations defined in marc4ld#203
pkjacob wants to merge 1 commit intomasterfrom
pjacob/MODLD-980_2

Conversation

@pkjacob
Copy link
Contributor

@pkjacob pkjacob commented Feb 20, 2026

I updated the mappings to inlclude LIGHT_RESOURCE type in this PR -> #198

However, I missed to update that fingerprint rules. Thankfully, Yana noticed the problem.

This test guarantee that all the type combinations defined in marc4ld rules have a corresponding entry in fingerprint rules.

I think we need to add a similar test in rd4ld and mod-linked-data to ensure that all the resources created have a corresponding fingerprint rule defined. Let us think how to do that.

Build will pass after merging folio-org/lib-linked-data-fingerprint#108

Copilot AI review requested due to automatic review settings February 20, 2026 22:04
Comment on lines +36 to +40
Set.of(ABBREVIATED_TITLE.name()), // use all properties for fingerprinting
Set.of(ID_CODEN.name(), IDENTIFIER.name()), // use all properties for fingerprinting
Set.of(AGENT.name()), // use all properties for fingerprinting
Set.of(FREQUENCY.name()), // use all properties for fingerprinting
Set.of(IDENTIFIER.name()) // use all properties for fingerprinting
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to review why these types do not have a fingerprint rule defined. May be we will define the fingerprint rule for these types and remove them from the list.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds an integration test to validate that fingerprint rules exist for all type combinations defined in the marc4ld configuration. The test ensures consistency between marc4ld mapping rules and fingerprint rules used for resource identification and deduplication.

Changes:

  • Added a new integration test class that validates the presence of fingerprint rules for all type combinations extracted from marc4ld configuration files
  • The test extracts type combinations from both bibliographic and authority field rules, compares them against fingerprint rules, and identifies any missing combinations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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