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

Fix/orderby behaviour on custom query #562

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gabrielHosino
Copy link

What problem is this solving?

When we use the SearchResultLayoutCustomQuery block, changing the orderby select does not change the order of the products shown. This PR seeks to correct that, by adding a check if the order key exists in the querystring of the URL.

How to test it?

You can use this Workspace with the new solution working. That link will take you to a new custom page the FPA BR team is working on. There, we use the SearchResultLayoutCustomQuery

Screenshots or example usage:

orderbyscreen.mp4

How does this PR make you feel? 🔗

@gabrielHosino gabrielHosino requested review from a team as code owners December 14, 2021 12:27
@gabrielHosino gabrielHosino self-assigned this Dec 14, 2021
@vtex-io-ci-cd
Copy link
Contributor

vtex-io-ci-cd bot commented Dec 14, 2021

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

Copy link
Contributor

@hiagolcm hiagolcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple and clean. thanks for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants