generated from cds-snc/project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Feature Flags
Dylan edited this page Jan 26, 2023
·
48 revisions
Feature flags is a software tool that enables a product team to enable or disable (aka show or hide) specific product features on-demand without the need for code modifications or new pull requests.
Initially Learning Resources considered integrating a third-party feature flag solution called nuxt-feature-toggle. This solution was easy to integrate and use, however it lacked the capability to pass more customized options to flagged components. This limitation along with the other future extensibility considerations led Learning Resources to implement an in-house solution that replicates the intuitive integration / usability of the nuxt-feature-toggle but with room for future extensibility and customization.
- Product/project managers
- Developers
- Other project administrators
- Login using your single sign-on link
- Select LearningResource-Production or LearningResources-Staging depending on which environment you which to toggle a feature for.
- Then click Management console within AWSAdministratorAccess
- Click AWS Amplify
If you don't see AWS Amplify, search for it in the search bar
- Think of the app as the domain you want to toggle a feature for
(e.g. for our staging website select Learning Resources (Staging))
- Click Environment variables (located in left menu)
- Then, click Manage variables button (located top right)
- Find the feature you want to toggle. Features follow the naming convention of '
F_[FEATURE_NAME]
' - Enter a valid value into the input box to toggle the feature on or off.
-true
|1
|{"isEnabled":true}
will turn the feature on
-false
|0
|{"isEnabled":false}
will turn the feature off
- Click Save button, to save changes
Footer