This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Handle the case when exact matching to a non matched items submitted with create=false #1580
Labels
bug
Something isn't working
Overview
If facility is submitted via API with
create=false
and there is no match a facility list item is created, but there is no facility match or facility. Subsequent submission of the same facility details will be an exact match to the item, but an exception is raised.In this case, we should ignore the item instead and choose the next exact matching item or, if there are no other exact matches, proceed to the dedupe process.
Ensure that that if there is an automatic dedupe match,
FacilityListItem.facility
is set, allowing subsequent exact matches to avoid the exception.This is a fix to the original feature was added in #1568 where we implemented to address https://github.com/open-apparel-registry/open-apparel-registry-clients/issues/61
Steps to Reproduce
create=false
twice. The second submission should result inERROR_MATCHING
The text was updated successfully, but these errors were encountered: