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: use 'stepQauntitiy' instead of 'stepOrderQuantity' to fetch the correct data in product listings #1432

Merged
merged 3 commits into from
May 17, 2023

Conversation

DilaraGueler
Copy link
Contributor

@DilaraGueler DilaraGueler commented May 15, 2023

PR Type

[x] Bugfix

What Is the Current Behavior?

The current ICM product detail REST API returns stepOrderQuantity information.
For that reason the product list calls where asked for stepOrderQuantity as well but did not return that information.
For product list calls only the better name stepQuantity works and returns the expected information.

What Is the New Behavior?

The PWA now consistently uses the name stepQuantity.
Only for the product details call the mapper maps the stepOrderQuantity value to stepQuantity.
This way step quantity now works in product listings as well as on the product details page.

In the future the ICM product details REST API will provide the information as stepQuantity as well and the stepOrderQuantity will be deprecated. Once this is the case another adaption in the PWA will become necessary.

Does this PR Introduce a Breaking Change?

[x] No

Other Information

AB#86081

@DilaraGueler DilaraGueler requested a review from shauke May 15, 2023 14:46
@DilaraGueler DilaraGueler self-assigned this May 15, 2023
@DilaraGueler DilaraGueler marked this pull request as ready for review May 16, 2023 22:43
…roduct detail REST API calls

* product detail still only returns 'stepOrderQuantity' that has to be used and mapped internally
* internally the PWA now uses the name 'stepQuantity'
@shauke shauke added this to the 4.1 milestone May 17, 2023
@shauke shauke changed the title feat: stepOrderQuantity replaced with stepQauntitiy fix: use 'stepQauntitiy' instead of 'stepOrderQuantity' to fetch the correct data in product listings May 17, 2023
Copy link
Collaborator

@shauke shauke left a comment

Choose a reason for hiding this comment

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

Adapted and approved

@shauke shauke merged commit bd20419 into develop May 17, 2023
@shauke shauke deleted the feature/product_step_quantity branch May 17, 2023 12:21
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.

2 participants