Skip to content

Facet within facet #1017

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

Merged
merged 7 commits into from
Sep 25, 2024
Merged

Facet within facet #1017

merged 7 commits into from
Sep 25, 2024

Conversation

RFSH
Copy link
Member

@RFSH RFSH commented Sep 20, 2024

This PR includes the changes required for this PR in chaise. Summary of changes:

  • Added support for the new max_facet_depth display annotation property, and maxFaceDepth property added to facetPanelDisplay of chaise-config.
  • We designed and implemented our parse to handle having multiple layers of facets. So in this PR I just fixed the bugs/issues that I found to make sure everything works properly (we didn't have extensive tests or usecase for this feature so we never found these):
    • Ensure FacetColumn.hideNullChoice can properly find null filters in multi-layer facet (it was just looking at the facets of the current level. But if there's a null facet anywhere on the URL we cannot allow users to filter by null again).
    • Make sure Location constructor uses the correct join. The constructor was assuming that the first portion of the url always has a facet but that might not be true.
    • Change Location.addJoin to use the proper alias name. It was due to the same wrong assumption as the previous bullet.
    • Fix typos in Location.ermrestCompactPath and _createParsedJoinFromStr.

@RFSH RFSH self-assigned this Sep 20, 2024
issues:

- fix typos in ermrestCompactPath and _createParsedJoinFromStr
- make sure Location constructor uses the correct join. the function
  was assuming that the first portion of the url always has a facet,
  but that might not be true.
@RFSH RFSH requested a review from jrchudy September 23, 2024 22:08
@RFSH RFSH merged commit 15f9635 into master Sep 25, 2024
1 check passed
@RFSH RFSH deleted the facet-within-facet branch September 25, 2024 23:42
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.

2 participants