ShelterTechSF / askdarcel-web

The "Ask Darcel" web app.
GNU General Public License v3.0
28 stars 22 forks source link

Fix outdated names in refinement mappings. #1367

Closed richardxia closed 5 months ago

richardxia commented 5 months ago

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.