This PR adds support for overriding feature flag values by setting a query parameter (e.g. ?myFlagName=enabled will force a flag on). This should work for most use cases (barring potentially SSG) and should make testing different flag states much easier.
This also make InstantSearch ignore unrelated query parameters. We need this to keep the search URL updates from obliterating our feature flag overrides (there are no flags on the search pages yet, but it seemed like too sharp of an edge to put off handling).
1503
Checklist
[na] On the frontend, I've made my strings translate-able.
[na] If I've added shared components, I've added a storybook story.
[na] I've made pages responsive and look good on mobile.
Screenshots
N/A
Known issues
N/A
Steps to test/reproduce
Go to a page with a known flag-gated feature (like the Bill Tracker or Follow Org button)
Set the flag as a query param with values of "enabled"/"disabled to test the different states
Verify that the feature appears when the flag is enabled, disappears when it is disabled, and has the default behavior when no flag query param is set
Likely also worth testing the bill/testimony search pages - there should be no change in the functionality there
Summary
This PR adds support for overriding feature flag values by setting a query parameter (e.g.
?myFlagName=enabled
will force a flag on). This should work for most use cases (barring potentially SSG) and should make testing different flag states much easier.This also make InstantSearch ignore unrelated query parameters. We need this to keep the search URL updates from obliterating our feature flag overrides (there are no flags on the search pages yet, but it seemed like too sharp of an edge to put off handling).
1503
Checklist
Screenshots
N/A
Known issues
N/A
Steps to test/reproduce
Likely also worth testing the bill/testimony search pages - there should be no change in the functionality there