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

Fix outdated names in refinement mappings. #1367

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

richardxia
Copy link
Member

The refinement mappings are a hardcoded list of eligibility and category names used for the left sidebar filters on the search results page (but not the tile results page). This list has been neglected, and various eligibilities and categories have been renamed or deleted from the database. This commit updates the names based on feedback and advice from the Content team, even though some of these even predate the Content team.

I validated these changes by copying and pasting these hashes/objects/maps into the Rails console and double checking that all of these correspond to an Eligibility/Category with the exact same spelling.

This is also somewhat validated by the search results page actually allowing all of these checkboxes to be checked, since the widget normally disables a checkbox if there are no results under that eligibility, and now, with simple search queries like "food", all the eligibility checkboxes are enabled.

The refinement mappings are a hardcoded list of eligibility and
category names used for the left sidebar filters on the search results
page (but not the tile results page). This list has been neglected, and
various eligibilities and categories have been renamed or deleted from
the database. This commit updates the names based on feedback and advice
from the Content team, even though some of these even predate the
Content team.
@richardxia richardxia merged commit 69c0ee1 into master Jun 27, 2024
5 checks passed
@richardxia richardxia deleted the fix-refinement-mappings branch June 27, 2024 15:04
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.

1 participant