411 Removes dependency on immature "alternate_ids" product property #414
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🗒️ 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