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: merge filter effects that trigger loadFilterSuccess #1048

Merged
merged 2 commits into from
Mar 11, 2022

Conversation

franciscomdrito
Copy link
Contributor

@franciscomdrito franciscomdrito commented Mar 7, 2022

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?

Currently the filter effects contains multiple effects that trigger the same action. If the userchanges really fast from a filter triggered by a search and then triggers a category filter the current implementation allows the search filter to be applied after the category filter. Therefore the order is not respected and the wrong filters are displayed

Issue Number: Closes #

What Is the New Behavior?

The effects that trigger the same action (loadFilterSuccess) are now merged into a single effect. Switch map was added since we always want the latest source (previous ones can be dropped)

Does this PR Introduce a Breaking Change?

[ ] Yes
[ x] No

Other Information

AB#75013

@franciscomdrito franciscomdrito requested a review from dhhyi March 7, 2022 17:39
dhhyi
dhhyi previously approved these changes Mar 7, 2022
@dhhyi dhhyi added bug Something isn't working community Community contributions refactoring Refactoring of current code labels Mar 7, 2022
@dhhyi dhhyi changed the title filter effects that trigger loadFilterSuccess action into a single effect refactor: merge filter effects that trigger loadFilterSuccess Mar 7, 2022
@shauke shauke added this to the 2.2 milestone Mar 8, 2022
@SGrueber SGrueber merged commit c97b5e3 into develop Mar 11, 2022
@SGrueber SGrueber deleted the refactor/filter_effects branch March 11, 2022 14:03
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
bug Something isn't working community Community contributions refactoring Refactoring of current code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants