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

refactor: use the ICM channel preference to configure the advancedVar… #991

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

SGrueber
Copy link
Collaborator

@SGrueber SGrueber commented Jan 24, 2022

…iationHandling instead of the feature toggle of the same name

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] 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 feature toggle 'advancedVariationHandling' is used to configure how variations should be displayed and behave.

What Is the New Behavior?

Instead, the ICM channel preference 'advancedVariationHandling' is used to configure how variations should be displayed and behave.

Does this PR Introduce a Breaking Change?

[x] Yes
[ ] No

Other Information

You will find the preference as 'List View' in the ICM backoffice under Channel Preferences -> Product Variations. This preferences is available per REST with ICM release 7.10.34.0

AB#73600

@SGrueber SGrueber self-assigned this Jan 24, 2022
@SGrueber SGrueber added the refactoring Refactoring of current code label Jan 24, 2022
@SGrueber SGrueber added this to the 2.0 milestone Jan 24, 2022
@SGrueber SGrueber force-pushed the refactor/advanced_variation_handling_config branch from 0f6212e to de570d0 Compare January 25, 2022 13:43
…iationHandling instead of the feature toggle of the same name
@SGrueber SGrueber force-pushed the refactor/advanced_variation_handling_config branch from de570d0 to 0500882 Compare January 25, 2022 14:36
@MaxKless MaxKless assigned MaxKless and unassigned SGrueber Jan 26, 2022
@MaxKless MaxKless self-requested a review January 26, 2022 12:14
Copy link
Collaborator

@MaxKless MaxKless left a comment

Choose a reason for hiding this comment

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

Nice work with the tests. PR looks great :)


// workaround: overrideSelector is not working for selectors with parameters https://github.com/ngrx/platform/issues/2717
store$.overrideSelector(getServerConfig, {
_config: { preferences: { ChannelPreferences: { EnableAdvancedVariationHandling: true } } },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good solution 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thx :-)

@SGrueber SGrueber merged commit b459006 into develop Jan 27, 2022
@SGrueber SGrueber deleted the refactor/advanced_variation_handling_config branch January 27, 2022 17:47
SGrueber added a commit that referenced this pull request May 19, 2022
…iationHandling instead of the feature toggle of the same name (#991)

BREAKING CHANGES: The feature toggle 'advancedVariationHandling' has been removed. Use the ICM channel preference for 'Variations List View' now. (see [Migrations / 1.4 to 2.0](https://github.com/intershop/intershop-pwa/blob/develop/docs/guides/migrations.md#14-to-20) for more details.
SGrueber pushed a commit that referenced this pull request May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring of current code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants