Skip to content
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

Clarify reasoning behind environment variables in README.md #3

Open
lupino3 opened this issue May 29, 2019 · 7 comments
Open

Clarify reasoning behind environment variables in README.md #3

lupino3 opened this issue May 29, 2019 · 7 comments
Labels
documentation enhancement New feature or request

Comments

@lupino3
Copy link
Member

lupino3 commented May 29, 2019

Deterministic, cheap evaluation of all feature flags; ability to use feature flags in batch scripts in a cheap way.

@lupino3 lupino3 added documentation enhancement New feature or request labels May 29, 2019
@tomrowton-alk
Copy link

The "environmentVariables" member in the json file seems to be only partially implemented, though the readme file suggests it is "done" ... will this receive more development?

@lupino3
Copy link
Member Author

lupino3 commented Apr 28, 2023

Hi @tomrowton-alk, the feature is implemented but not very well documented.
We do use it in production.

Is there something that you are missing from this feature?

Thanks!

@tomrowton-alk
Copy link

tomrowton-alk commented Apr 28, 2023 via email

@tomrowton-alk
Copy link

To be clearer, I thought that Test-FeatureFlag would take the environment variable items into account when returning True/False... my testing and rereading the code show that doesn't and can't happen with the current code.

@lupino3
Copy link
Member Author

lupino3 commented Apr 30, 2023

The documentation is definitely unclear on that.
The goal of the environment variables support is the opposite: when some feature flags are enabled, you can create an environment configuration file with the Out-FeaturesEnvConfig cmdlet, containing only the environment variable definition matching the enabled feature flags.

The goal of this feature is to add easy feature flag support to batch scripts that cannot easily directly invoke Test-FeatureFlag, but can easily depend on environment variables.

Hope this makes things clearer!

@tomrowton-alk
Copy link

tomrowton-alk commented May 2, 2023 via email

@lupino3
Copy link
Member Author

lupino3 commented May 2, 2023

Happy to help! And this discussion to me really means that we need to update the docs ASAP. Thanks for your questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants