graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Server.Init.FeatureFlag

Description

Feature Flags are temporary toggles.

Synopsis

Documentation

newtype FeatureFlag Source #

Constructors

FeatureFlag 

Fields

Instances

Instances details
FromJSON FeatureFlag Source # 
Instance details

Defined in Hasura.Server.Init.FeatureFlag

ToJSON FeatureFlag Source # 
Instance details

Defined in Hasura.Server.Init.FeatureFlag

Generic FeatureFlag Source # 
Instance details

Defined in Hasura.Server.Init.FeatureFlag

Associated Types

type Rep FeatureFlag :: Type -> Type #

Eq FeatureFlag Source # 
Instance details

Defined in Hasura.Server.Init.FeatureFlag

Hashable FeatureFlag Source # 
Instance details

Defined in Hasura.Server.Init.FeatureFlag

type Rep FeatureFlag Source # 
Instance details

Defined in Hasura.Server.Init.FeatureFlag

type Rep FeatureFlag = D1 ('MetaData "FeatureFlag" "Hasura.Server.Init.FeatureFlag" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "FeatureFlag" 'PrefixI 'True) (S1 ('MetaSel ('Just "ffIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ceCheckFeatureFlag :: Environment -> CheckFeatureFlag Source #

In OSS we _may_ look for a environment variable or fall back to the default value.

data CheckFeatureFlag Source #

Constructors

CheckFeatureFlag 

Fields

  • runCheckFeatureFlag :: FeatureFlag -> IO Bool

    Action that samples the value of a feature flag. Different products will want to do different things. For example, the Cloud product will want to use LaunchDarkly whereas the OSS and non-cloud EE products will want to sample environment variables.

  • listKnownFeatureFlags :: [(FeatureFlag, Text)]

    A registry of flags that are known by the system. This is only used to inform of feature flag values via the 'v1alphaconfig' endpoint. Ideally, the console should have a dedicated endpoint to sample feature flags so we don't _have_ to centralise that knowledge here.