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

Foundation for the pre filter work add Funding filter #4774

Conversation

tomas-stefano
Copy link
Contributor

Context

This PR adds the funding type filter on the v2 results page

Caveats

For backwards compatibility the funding is string on the live site (v1 results page). This PR adds an array but also accept the funding as string for compatibility.

Changes proposed in this pull request

Screenshot 2024-12-16 at 11 37 57

Guidance to review

  1. Visit /v2/results
  2. Does it work with all three checkboxes? Choosing one, two, three, zero?

Always good to have more scenarios tested!
On the live (v1) results page there are no fee and apprenticeship
filters, only salary and these is treated as a string "salary".

We want to add a collection now, so adding this compatibility to
make work
@tomas-stefano tomas-stefano added the deploy A Review App will be created for PRs with this label label Dec 16, 2024
@tomas-stefano tomas-stefano requested a review from a team as a code owner December 16, 2024 11:39
@tomas-stefano tomas-stefano changed the title Td/289 foundation for the pre filter work add fee or salary filter Foundation for the pre filter work add Funding filter Dec 16, 2024
@tomas-stefano
Copy link
Contributor Author

@@ -21,8 +21,10 @@ def search_courses_params
:send_courses,
:applications_open,
:further_education,
:funding,
Copy link
Contributor Author

@tomas-stefano tomas-stefano Dec 16, 2024

Choose a reason for hiding this comment

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

This one sounds duplicate but not! It is to be backwards compatible with the currently production page. See commit message and PR description for more info.

@tomas-stefano tomas-stefano merged commit 05dfb41 into main Dec 16, 2024
38 checks passed
@tomas-stefano tomas-stefano deleted the td/289-foundation-for-the-pre-filter-work-add-fee-or-salary-filter branch December 16, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy A Review App will be created for PRs with this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants