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: remove sortkey 'default' from product list REST call #1550

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

SGrueber
Copy link
Collaborator

@SGrueber SGrueber commented Dec 11, 2023

PR Type

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

The REST call for fetching products for a product family page contains always a parameter 'sortKey' even if no special sort option is selected (in this case sortKey = 'default')

Issue Number: Closes #

What Is the New Behavior?

The parameter 'sortKey' is not appended at the product REST request if the default sorting is selected.

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

Other Information

AB#91958

@SGrueber SGrueber requested a review from shauke December 11, 2023 09:10
@SGrueber SGrueber self-assigned this Dec 11, 2023
@SGrueber SGrueber added this to the 5.0 milestone Dec 11, 2023
… inconsistent results

The "sortKey" and "sorting" parameter is set to "default" when the "Default Sorting" option is selected via dropdown. This leads to incorrect sorting of the products, as this "default" parameter is not an existing sorting key.
@shauke shauke merged commit cf7541c into develop Dec 12, 2023
21 checks passed
@shauke shauke deleted the bugfix/default_sortkey branch December 12, 2023 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants