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

OBPIH-5165 Adjust badge count total to count only selected fields that user can select #3643

Conversation

drodzewicz
Copy link
Collaborator

No description provided.

@drodzewicz drodzewicz self-assigned this Nov 22, 2022
@drodzewicz drodzewicz requested review from awalkowiak and kchelstowski and removed request for awalkowiak November 22, 2022 12:40
// Ignore accounting for filter that is specified in "ignoreClearFilters"
if (ignoreClearFilters.includes(key)) return false;
// Ignore filter that is not specified in filterFields config
// and that is not a search field
Copy link
Collaborator

Choose a reason for hiding this comment

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

what are examples of filters that are not specified in filterFields? Because I can't remind myself of such case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was the case where the badge counter would count filters such as direction=INBOUND on inbound pages or for requests direction=OUTBOUND&sourceType=ELECTRONIC.
These filters are not specified in the filterFields

Copy link
Collaborator

Choose a reason for hiding this comment

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

Aren’t they added to the filterFields anyway when building defaultFilterValues?
In the place, where you are looking on query params and adding them to filterValues?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The query params filters are added to filterValues but filterFields stays unchanged.
FilterFields is like a configuration object that specifies what filters/components to load and we are never changing it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, I see, I was thinking about filterValues all the time. I didn’t mean you had done something wrong, but just wanted to know, what is going on there.
If it’s filterFields then I’m fine with it now

@awalkowiak awalkowiak merged commit b247241 into develop Nov 23, 2022
@awalkowiak awalkowiak deleted the OBPIH-5165-adjust-badge-count-total-to-count-only-selected-fields-that-user-can-select branch November 23, 2022 10:09
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.

None yet

3 participants