-
Notifications
You must be signed in to change notification settings - Fork 337
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
Figure out how we use feature flags in GOV.UK Frontend #4086
Comments
This will be coming up again soon with the typography work as we are broadly planning on releasing this behind a feature flag alphagov/govuk-design-system#2289 |
For the review app in particular, we've used query strings in the past like They've been hard to persist across every page but perhaps a cookie could help? Feature flags cookieUsing Express.js review app middleware, we could stamp feature flags into a cookie for easy recall:
Using <body data-feature='{ "name1": true, "name2": true }'> Or equally for CSS rules to hide behind the feature flag: [data-feature*='"name1": true'] & {
@include govuk-font($size: 16);
} Feature flags JSONFor the Design System website, we deploy static HTML so can't change it at runtime But we currently export the following JSON fixtures from GOV.UK Frontend for each component:
Could we add a new top-level We could configure or override these as Metalsmith Which makes them available to Nunjucks via calls such as |
There was some chat about this work in a DS/Kit tech leads catchup a few weeks ago. The main thoughts and ideas from this:
|
I struggled to find rationale on experimental features or feature flags or examples of feature flags in use in other open source UI frameworks except for Bootstrap:
The conclusions I draw from this light research is that this is fairly fertile ground in terms of how we define and manage experimental features. I'm going to press on with prototyping what a feature flag policy might look like. |
What
Investigate and formalise techniques and feature flags in GOV.UK Frontend.
Why
So that we can release and test features early and get feedback from users without having to bundle them in a single large release, which can be challenging to users.
Who needs to work on this
Developers
Who needs to review this
Developers
Notes
Problems to solve
Prior usage
We have previously used feature flags for the following features:
Tasks
The text was updated successfully, but these errors were encountered: