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

Remove GOVUK_DISABLE_SEARCH_AUTOCOMPLETE feature flag #4533

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

csutter
Copy link
Contributor

@csutter csutter commented Jan 8, 2025

What

We are centralising the enabling/disabling of autocomplete in Search API v2 so we don't need individual feature flags across several apps and in the component itself.

Why

The rationale for being able to disable autocomplete centres on a scenario in which the underlying search engine returns unsuitable results. The search_with_autocomplete component degrades gracefully anyway when no suggestions are returned, so we are moving to a simpler setup where there is a feature flag on Search API v2 to force returning empty responses instead.

Depends on alphagov/search-api-v2#375

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4533 January 8, 2025 15:09 Inactive
@csutter csutter requested a review from kevindew January 8, 2025 15:13
We are centralising the enabling/disabling of autocomplete in Search API
v2 so we don't need individual feature flags across several apps and in
the component itself.

The rationale for being able to disable autocomplete centres on a
scenario in which the underlying search engine returns unsuitable
results. The `search_with_autocomplete` component degrades gracefully
anyway when no suggestions are returned, so we are moving to a simpler
setup where there is a feature flag on Search API v2 to force returning
empty responses instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants