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

[Issue #1193] Search Page feature flag #1251

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

SammySteiner
Copy link
Contributor

Summary

Fixes #1193

Time to review: 3 mins

Changes proposed

Use showSearchV0 flag to programmatically show search page or redirect to 404 page.

Context for reviewers

use query string ?_ff=showSearchV0:true to toggle the page on.
use query string ?_ff=showSearchV0:false to toggle the page off.
Or use the route /dev/feature-flags to update the flag.

@SammySteiner SammySteiner marked this pull request as ready for review February 15, 2024 18:27
const { featureFlagsManager, mounted } = useFeatureFlags();

if (!mounted) return null;
if (!featureFlagsManager.isFeatureEnabled("showSearchV0")) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Makes sense to me!

@SammySteiner SammySteiner merged commit 5256754 into main Feb 15, 2024
9 checks passed
@SammySteiner SammySteiner deleted the sammysteiner/1193-search-ff branch February 15, 2024 18:33
@SammySteiner SammySteiner changed the title use showSearchV0 flag [Issue #1193] Search Page feature flag Feb 15, 2024
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.

[Task]: Hide Search Page behind Feature Flag
2 participants