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

Ipo finder nested facets #3160

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Conversation

lauraghiorghisor-tw
Copy link
Contributor

@lauraghiorghisor-tw lauraghiorghisor-tw commented Feb 25, 2025

Adding some additional required fields for nested facets.

Trello

@lauraghiorghisor-tw lauraghiorghisor-tw marked this pull request as draft February 25, 2025 09:32
@lauraghiorghisor-tw lauraghiorghisor-tw marked this pull request as ready for review February 25, 2025 11:26
@lauraghiorghisor-tw lauraghiorghisor-tw force-pushed the ipo-finder-nested-facets branch 2 times, most recently from b96484d to 4b8f519 Compare February 25, 2025 12:08
@minhngocd minhngocd force-pushed the ipo-finder-nested-facets branch from 4b8f519 to 39d0f37 Compare February 25, 2025 13:11
Copy link
Contributor

@ChrisBAshton ChrisBAshton left a comment

Choose a reason for hiding this comment

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

I do wonder if we could make it clearer that the main_facet_value is the important bit for linking (otherwise my first instinct was "why do we have to define the sub_facet_key/name and the main_facet_label/value?"). But couldn't think of a way of rephrasing the description to make it clearer 🤔

@minhngocd minhngocd force-pushed the ipo-finder-nested-facets branch from b60ce0f to f5a5577 Compare February 25, 2025 17:38
@minhngocd
Copy link
Contributor

I do wonder if we could make it clearer that the main_facet_value is the important bit for linking (otherwise my first instinct was "why do we have to define the sub_facet_key/name and the main_facet_label/value?"). But couldn't think of a way of rephrasing the description to make it clearer 🤔

Updated the description. Would that read better?

minhngocd pushed a commit that referenced this pull request Feb 25, 2025
We have changed approach in the way we implemented nested facets. Nested facets are now sent as two separate facets independently with a cross reference link between them, therefore we no longer need to send sub-facets as part of the finder schema.

#3160
Finder frontend and Government frontend view the nested facets as 2 separate facets. We make it easier by sending them as separate facets with a reference back to their main facet value.
Main facet label is also required to populate the subfacet label in the format `Main facet label - Sub Facet Label` for when JS is disabled.

The changes made in SP now make the use of `sub_facets` field obsolete, but the removal of that field will be done in a separate PR.
@lauraghiorghisor-tw lauraghiorghisor-tw merged commit 779010c into main Feb 26, 2025
40 checks passed
@lauraghiorghisor-tw lauraghiorghisor-tw deleted the ipo-finder-nested-facets branch February 26, 2025 17:00
minhngocd pushed a commit that referenced this pull request Feb 26, 2025
We have changed approach in the way we implemented nested facets. Nested facets are now sent as two separate facets independently with a cross reference link between them, therefore we no longer need to send sub-facets as part of the finder schema.

#3160
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.

3 participants