Clarify reasoning behind environment variables in README.md · Issue #3 · microsoft/PowerShell-FeatureFlags · GitHub
Skip to content

Clarify reasoning behind environment variables in README.md #3

Open

Description

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

Activity

  1. tomrowton-alk commented on Apr 27, 2023

    @tomrowton-alk

    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?

  2. lupino3 commented on Apr 28, 2023

    @lupino3
    MemberAuthor

    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!

  3. tomrowton-alk commented on Apr 28, 2023

    @tomrowton-alk
  4. tomrowton-alk commented on Apr 28, 2023

    @tomrowton-alk

    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.

  5. lupino3 commented on Apr 30, 2023

    @lupino3
    MemberAuthor

    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!

  6. tomrowton-alk commented on May 2, 2023

    @tomrowton-alk
  7. lupino3 commented on May 2, 2023

    @lupino3
    MemberAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions