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

Handle collapsed facets properly when loading hierarchical facets. #2509

Merged
merged 1 commit into from Aug 12, 2022

Conversation

EreMaijala
Copy link
Contributor

Moves the check for collapsed facet into JS to take into account the client-side session storage that overrides collapsedFacets from configuration.

Before the change a collapsed facet could have been loaded in the background. While this doesn't cause any actual problems, it's just extra work for the server in case the user never sees the results.

Moves the check for collapsed facet into JS to take into account the client-side session storage that overrides collapsedFacets from configuration.
@EreMaijala
Copy link
Contributor Author

Mink tests are passing.

Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @EreMaijala!

@demiankatz demiankatz merged commit 035d332 into vufind-org:dev Aug 12, 2022
EreMaijala pushed a commit to EreMaijala/vufind that referenced this pull request Jan 30, 2023
@EreMaijala EreMaijala deleted the dev-hierarchical-facet-init branch April 13, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants