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

Fixed faulty getProducts call with productIds and filters #466

Merged
merged 2 commits into from
Dec 10, 2018

Conversation

fkloes
Copy link
Collaborator

@fkloes fkloes commented Dec 10, 2018

Description

This ticket is about to fix an issue, where the getProducts pipeline was called with productIds and filters. This parameter combination is not allowed by specification and results into an error to the user.

Since the filters are gathered via a selector within the getProducts actions, it could happen that filters where dispatched in combination with productIds.

Type of change

  • Bug Fix 🐛 (non-breaking change which fixes an issue)
  • New Feature 🚀 (non-breaking change which adds functionality)
  • Breaking Change 💥 (fix or feature that would cause existing functionality to not work as expected)
  • Polish 💅 (Just some cleanups)
  • Docs 📝 (Changes in the documentations)
  • Internal 🏠 Only relates to internal processes.

- the filters are now cleared internally when action params contain productIds
@fkloes fkloes added the bug Something isn't working label Dec 10, 2018
@fkloes fkloes self-assigned this Dec 10, 2018
@coveralls
Copy link

coveralls commented Dec 10, 2018

Pull Request Test Coverage Report for Build 1736

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 40.848%

Changes Missing Coverage Covered Lines Changed/Added Lines %
libraries/commerce/product/actions/getProducts.js 0 3 0.0%
Totals Coverage Status
Change from base Build 1728: -0.01%
Covered Lines: 5124
Relevant Lines: 12144

💛 - Coveralls

@alexbridge alexbridge merged commit 8d12280 into develop Dec 10, 2018
@alexbridge alexbridge deleted the PWA-1450-error-message-on-pdp branch December 10, 2018 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants