fix(core): Avoid variant options combination check on updateProductVariant mutation #3361
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.
Description
Avoids throwing an error checking for variant option combinations that already exist when updating variants.
Related Issue: #3190
Breaking changes
no
Screenshots
Error doesnt show up now when updating an variant while also specifying the current optionIds
![image](https://private-user-images.githubusercontent.com/47721109/411954203-c29ccae6-3e42-4fc4-8e29-d0b9e8b5907a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjAwMzIsIm5iZiI6MTczOTU1OTczMiwicGF0aCI6Ii80NzcyMTEwOS80MTE5NTQyMDMtYzI5Y2NhZTYtM2U0Mi00ZmM0LThlMjktZDBiOWU4YjU5MDdhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE5MDIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1MmNmZmE3Y2ZjYzFjOTk1ODg5ZjhkODliYmZjMGViM2QxMDYyZjk5MDBiODM5ZmQ5YTc5ZGRhNWJmMTkxODcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JBfwU-fVpRAkRLbg4xgK3i-pHeoYyNvqXAQ-3zjUPHY)
But is thrown when trying to specify already existing optionIds while creating a new variant
![image](https://private-user-images.githubusercontent.com/47721109/411954296-15cd8737-505f-496b-8d3e-92b9a81372b1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NjAwMzIsIm5iZiI6MTczOTU1OTczMiwicGF0aCI6Ii80NzcyMTEwOS80MTE5NTQyOTYtMTVjZDg3MzctNTA1Zi00OTZiLThkM2UtOTJiOWE4MTM3MmIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE5MDIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyZmNkYmVlYzljMGU3Y2QxNzZhZGE3ZDkxMDZkMzM1ZDJhYzRiNzFmMGZiNjlkYWI1ZTU1MGY0N2YwMTgzNDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._RXZKM5zmCcJfdPEwjpGwlAh5knt1_Ihd7V56aDIzcc)
Checklist
📌 Always:
👍 Most of the time: