Skip to content
This repository has been archived by the owner. It is now read-only.

fix(config): allow env vars for experiment config #4785

Merged
merged 1 commit into from Mar 7, 2017
Merged

fix(config): allow env vars for experiment config #4785

merged 1 commit into from Mar 7, 2017

Conversation

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented Mar 7, 2017

Fixes #4780

@mozilla/fxa-devs r?

},
watch: {
default: false,
doc: 'poll the experiments git repo for changes'
doc: 'poll the experiments git repo for changes',
env: 'EXPERIMENTS_POLL'

This comment has been minimized.

@philbooth

philbooth Mar 7, 2017
Contributor

Shouldn't we also specify a format for this one to ensure it coerces to Boolean correctly?

Also, the current doc and env don't make clear that we're looking for an on/off value here, only the default does. Should we update them to make the booleanness explicit, EXPERIMENTS_ENABLE_POLLING?

(the current name/description could equally apply to, say, milliseconds polling interval)

@philbooth
Copy link
Contributor

@philbooth philbooth commented Mar 7, 2017

r+, I also a left a little inline comment about including a format and changing the name of the _POLL variable.

@vladikoff
Copy link
Contributor Author

@vladikoff vladikoff commented Mar 7, 2017

r+, I also a left a little inline comment about including a format and changing the name of the _POLL variable.

Yeah, exactly the feedback I was looking for, thanks! Will update

@vladikoff vladikoff force-pushed the i4780 branch from 765e731 to d3b6230 Mar 7, 2017
@vladikoff vladikoff merged commit ea2c538 into master Mar 7, 2017
4 checks passed
4 checks passed
ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage remained the same at 98.365%
Details
@vladikoff vladikoff deleted the i4780 branch Mar 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants