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

Filter product variants by product & option values #12382

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Feb 23, 2021

TODO:

  • Find out (and fix) why ProductItemDataProvider does not have channel in the context when filtering by product (/api/v2/shop/product-variants?product=%2Fapi%2Fv2%2Fshop%2Fproducts%2FLoose_white_designer_T_Shirt) - my idea is that ChannelContextBuilder is only run for the "main" API request, normalizing product's IRI and going through this data provider does not trigger context builder beforehand
  • Implement filter for option values - ?optionValues=/option/value/iri
  • Implement Behat scenario

@probot-autolabeler probot-autolabeler bot added the API APIs related issues and PRs. label Feb 23, 2021
@pamil pamil force-pushed the master-filter-product-variants-by-product-and-option-values branch 2 times, most recently from e6b4f5a to a6c5d18 Compare March 4, 2021 22:18
@GSadee GSadee marked this pull request as ready for review March 5, 2021 07:46
@GSadee GSadee requested a review from a team as a code owner March 5, 2021 07:46
@GSadee GSadee force-pushed the master-filter-product-variants-by-product-and-option-values branch from dfce9b9 to 32f74a7 Compare March 5, 2021 08:19
@GSadee GSadee force-pushed the master-filter-product-variants-by-product-and-option-values branch from 32f74a7 to 9073bad Compare March 5, 2021 10:10
@pamil pamil merged commit 87f8207 into Sylius:master Mar 5, 2021
@pamil pamil deleted the master-filter-product-variants-by-product-and-option-values branch March 5, 2021 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants