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

Dynamic catalog filters #2475

Merged
merged 3 commits into from
Apr 3, 2024
Merged

Dynamic catalog filters #2475

merged 3 commits into from
Apr 3, 2024

Conversation

nelsonkopliku
Copy link
Member

@nelsonkopliku nelsonkopliku commented Mar 26, 2024

Description

This PR allows filters in the catalog page to be populated based on the whole catalog content, while the actual list below is based on a filteredCatalog.

This requires making a differentiation in the intent: loading the whole catalog vs getting a filtered version of it, and I ended up adding this tiny seed filteredCatalog: true in the updateCatalog action.

However, I am not totally happy with it.
I attempted polishing catalog state and saga even further, but that would require rationalizing everything catalog related and updating many other places where the catalog is queried, like the checks selection, checks result page, etc... then I preferred keeping the change at minimum and defer further refactoring.

How was this tested?

Automated tests

@nelsonkopliku nelsonkopliku self-assigned this Mar 26, 2024
@nelsonkopliku nelsonkopliku added enhancement New feature or request javascript Pull requests that update Javascript code env Create an ephimeral environment for the pr branch labels Mar 26, 2024
Copy link
Contributor

@jamie-suse jamie-suse left a comment

Choose a reason for hiding this comment

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

tiny one-line fix for the imports (that you didn't even introduce 😛) but otherwise LGTM

@nelsonkopliku nelsonkopliku merged commit 0307973 into main Apr 3, 2024
24 checks passed
@nelsonkopliku nelsonkopliku deleted the dynamic-catalog-filters branch April 3, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request env Create an ephimeral environment for the pr branch javascript Pull requests that update Javascript code
Development

Successfully merging this pull request may close these issues.

None yet

2 participants