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

Use v2 for all site search queries #3295

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Use v2 for all site search queries #3295

merged 1 commit into from
Feb 28, 2024

Conversation

csutter
Copy link
Contributor

@csutter csutter commented Feb 27, 2024

This switches the /search/all ("site search") finder over to use search-api-v2 exclusively now that our AB test has concluded with a positive outcome.

  • Instead of checking for AB test variant, check for site search finder base path to establish whether to use v2
  • Add use_v1 query parameter along the lines of the existing use_v2 to force use of search-api in circumstances where search-api-v2 would normally be used
  • Fix stubbing of API endpoints in tests

This switches the `/search/all` ("site search") finder over to use
`search-api-v2` exclusively now that our AB test has concluded with a
positive outcome.

- Instead of checking for AB test variant, check for site search finder
  base path to establish whether to use v2
- Add `use_v1` query parameter along the lines of the existing `use_v2`
  to force use of `search-api` in circumstances where `search-api-v2`
  would normally be used
- Fix stubbing of API endpoints in tests
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3295 February 27, 2024 13:59 Inactive
Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

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

👍 🚀
So many stubs to update! I think there's job in the future for someone to rationalise all of that 😬

@csutter csutter merged commit dd907bc into main Feb 28, 2024
14 checks passed
@csutter csutter deleted the v2-go-live branch February 28, 2024 11:01
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