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.
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
W 15586246/removed out of stock product from cart #1881
W 15586246/removed out of stock product from cart #1881
Changes from 19 commits
696bfbd
142b8f6
1702fca
fccbb40
5e3f00b
89e258d
ad4ca9b
631f532
a6d32e6
d76289c
172f768
d0657d6
8704836
a1c2959
2de403a
97e4bea
5bb087e
d49f664
ac769d7
39f8b3e
4ad9189
eed4ba8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this is the main change from the previous PR (#1865)
So now we can either set productIds (the previous API) or productItems (the new API). I think this makes sense to prioritize the current behavior so existing projects will opt in to transition to the new API rather than having the new API forced on them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the logic here still assumes that
productItems
prop is passed in. Can we tweak the logic like this?productIds
props is passed in, logic will check forresProductIds
only.productItems
is passed in, the logic will check for bothresProductIds
andunOrderableIds
.