-
Notifications
You must be signed in to change notification settings - Fork 15
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
[AXON-194] Allow easy override of feature flags and experiments #165
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,8 @@ ATLASCODE_FX3_API_KEY="totally-real-api-key" | |
ATLASCODE_FX3_ENVIRONMENT="production" | ||
ATLASCODE_FX3_TARGET_APP="atlascode_web" | ||
ATLASCODE_FX3_TIMEOUT="2000" | ||
|
||
ATLASCODE_FF_OVERRIDES="feature_flag=true" | ||
|
||
ATLASCODE_EXP_OVERRIDES_BOOL="exp1_name=true" | ||
ATLASCODE_EXP_OVERRIDES_STRING="exp2_name=something" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing newline 😛 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { FeatureFlagClient } from './client'; | ||
import { Features } from './features'; | ||
import { Features, Experiments } from './features'; | ||
|
||
export { FeatureFlagClient, Features }; | ||
export { FeatureFlagClient, Features, Experiments }; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,9 @@ module.exports = { | |
'process.env.ATLASCODE_FX3_TARGET_APP': JSON.stringify(process.env.ATLASCODE_FX3_TARGET_APP), | ||
'process.env.ATLASCODE_FX3_TIMEOUT': JSON.stringify(process.env.ATLASCODE_FX3_TIMEOUT), | ||
'process.env.ATLASCODE_TEST_USER_API_TOKEN': JSON.stringify(process.env.ATLASCODE_TEST_USER_API_TOKEN), | ||
'process.env.ATLASCODE_FF_OVERRIDES': JSON.stringify(process.env.ATLASCODE_FF_OVERRIDES), | ||
'process.env.ATLASCODE_EXP_OVERRIDES_BOOL': JSON.stringify(process.env.ATLASCODE_EXP_OVERRIDES_BOOL), | ||
'process.env.ATLASCODE_EXP_OVERRIDES_STRING': JSON.stringify(process.env.ATLASCODE_EXP_OVERRIDES_STRING), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Random thought, maybe for one of those Friday engineering excellence things - we might be at a point where it could be really good to extract some common webpack logic :D Not in scope of this PR though There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or, I guess, we've been at that point for quite a while now and just failed to act xD My bad :D |
||
'process.env.CI': JSON.stringify(process.env.CI), | ||
}), | ||
], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd really appreciate a comment here about comma being the expected delimiter. Or, maybe, something like
f1=true,f2=false
in the example value?