Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

411 Removes dependency on immature "alternate_ids" product property #414

Merged
merged 4 commits into from
Feb 29, 2024

Conversation

alexdunnjpl
Copy link
Contributor

🗒️ Summary

alternate_ids property was used when resolving collection lidvids for both collection member and bundle member/member queries.

This property is not currently maintained in a way that fulfills its assumed purpose. This PR removes use of the property, and (because only LIDVIDs are supported in this context) replaces use of string identifiers with PdsLidVid objects instead. If any exceptions are experienced as a result of this change, it indicates an issue elsewhere in the code and exposing that issue is desirable.

⚙️ Test Data and/or Report

Tested hits count for both a bundle/member/member query and collection/member query and confirmed same number of hits before/after change.

Tested with both LID and LIDVID identifier in path parameter to confirm that LIDs are correctly resolved to latest-LIDVID as expected.

Tested failing example from #411 to ensure it is now succeeding (with zero hits, as expected, as referenced products are not harvested per @jordanpadams )

♻️ Related Issues

Fixes #411

the value in question is a string, and is not guaranteed to be a LIDVID string (could be a LID string)
…specified parent collection's LIDVID, rather than attempting to resolve alternate_ids

alternate_id is an immature property/feature and may not yet be relied upon for its assumed purpose of enumerating all identities across name-changes
…s directly when attempting to resolve member non-aggregate products, rather than attempting to resolve collection alternate_ids during the process

alternate_id is an immature property/feature and may not yet be relied upon for its assumed purpose of enumerating all identities across name-changes
Copy link
Member

@tloubrieu-jpl tloubrieu-jpl left a comment

Choose a reason for hiding this comment

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

That works where it previously failed.

Unfortunately I am not able to understand the code.

@tloubrieu-jpl tloubrieu-jpl merged commit a31eda0 into main Feb 29, 2024
2 checks passed
@tloubrieu-jpl tloubrieu-jpl deleted the alternateidectomy branch February 29, 2024 18:51
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.

members query return 500 when members do not exist in the registry or alternate_id does not exists
2 participants