Our Privacy Policy has changed, please visit https://about.gitlab.com/privacy to review these changes.
[Sprint/NuancedNumbat](feat): Enable feature flags when staging cookie set. #857
Summary
This allows for an override of the feature service by the setting of a cookie, containing a base64 encoded JSON object (see below for examples).
To test
-
Add a new cookie to your session on the sandbox,
staging-cookie
. -
Set the value to a base64 encoded JSON object (I used https://www.base64encode.net/) containing a feature flag that you can test. At the time of writing
cdn-jwt
andcassandra-notifications
are the only feature flags I see in there.
Example objects:
-
{"cdn-jwt":true}
=>eyJjZG4tand0Ijp0cnVlfQ==
-
{"cdn-jwt":false}
=>eyJjZG4tand0IjpmYWxzZX0=
-
{"cassandra-notifications":true}
=>eyJjYXNzYW5kcmEtbm90aWZpY2F0aW9ucyI6dHJ1ZX0=
-
{"cassandra-notifications":false}
=>eyJjYXNzYW5kcmEtbm90aWZpY2F0aW9ucyI6ZmFsc2V9
- Refresh and test whether the cookie worked.
note make sure to check the flag is still used! suggest a search of the codebase for ->has(
if you're not sure.
- Resolved by Ben Hayward
- Resolved by Ben Hayward
added 4 commits
- 62f24559...0070c0aa - 3 commits from branch
master
- c2668954 - Merge branch 'master' of gitlab.com:minds/engine into fix/e2e-tests-staging
- 62f24559...0070c0aa - 3 commits from branch
resolved all threads
added MR::Awaiting Review Squad::Yellow scoped labels
- Developer
Example test base64
{dark-mode:false}
should beeyJkYXJrLW1vZGUiOmZhbHNlfQ==
changed the description