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: reload the application after the pgid changed #1461

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

SGrueber
Copy link
Collaborator

@SGrueber SGrueber commented Jul 12, 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?

If the user's pgid changes due to data changes in the ICM backoffice, e.g. assigning/unassigning the user to a customer group, promotion etc. the personalized REST calls will fail with a 400 error: Bad Request (The provided matrix parameter "pgid" does not match the authenticated user.) and an error page is shown in most cases.

Issue Number: Closes #

What Is the New Behavior?

There is a new error handler that checks for the error above and if this error occurs the current page is reloaded. The relaod is necessary because a lot of data in the ngrx store might be affected (invalid) and the reload forces to fetch all the data from the ICM server again.

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

Other Information

AB#87744

@SGrueber SGrueber requested a review from Eisie96 July 12, 2023 14:19
@SGrueber SGrueber self-assigned this Jul 12, 2023
@SGrueber SGrueber added the bug Something isn't working label Jul 12, 2023
@SGrueber SGrueber added this to the 4.2 milestone Jul 12, 2023
@SGrueber SGrueber force-pushed the fix/reload_after_pgid_change branch from ae10bd4 to c396fd9 Compare August 7, 2023 13:15
@SGrueber SGrueber requested a review from Eisie96 August 8, 2023 14:02
@SGrueber SGrueber merged commit d0984ce into develop Aug 14, 2023
@SGrueber SGrueber deleted the fix/reload_after_pgid_change branch August 14, 2023 16: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.

2 participants