diff --git a/airbyte-webapp/src/packages/cloud/services/thirdParty/launchdarkly/LDExperimentService.tsx b/airbyte-webapp/src/packages/cloud/services/thirdParty/launchdarkly/LDExperimentService.tsx index 1c6a7336eba1..f30becf73f6c 100644 --- a/airbyte-webapp/src/packages/cloud/services/thirdParty/launchdarkly/LDExperimentService.tsx +++ b/airbyte-webapp/src/packages/cloud/services/thirdParty/launchdarkly/LDExperimentService.tsx @@ -33,14 +33,14 @@ import { rejectAfter } from "utils/promises"; * states LaunchDarkly can provide for a user/feature pair: * |--------------------------+-----------------------------------------------| * | `{}` | use the application's default feature setting | - * | `{ "overwrite": true }` | enable the feature | - * | `{ "overwrite": false }` | disable the feature | + * | `{ "enabled": true }` | enable the feature | + * | `{ "enabled": false }` | disable the feature | * |--------------------------+-----------------------------------------------| */ const FEATURE_FLAG_PREFIX = "featureService"; type LDFeatureName = `${typeof FEATURE_FLAG_PREFIX}.${FeatureItem}`; interface LDFeatureToggle { - overwrite?: boolean; + enabled?: boolean; } type LDFeatureFlagResponse = Record; type LDInitState = "initializing" | "failed" | "initialized"; @@ -93,18 +93,18 @@ const LDInitializationWrapper: React.FC { const allFlags = (ldClient.current?.allFlags() ?? {}) as LDFeatureFlagResponse; const featureSet: FeatureSet = Object.fromEntries( Object.entries(allFlags) .filter(([flagName]) => flagName.startsWith(FEATURE_FLAG_PREFIX)) - .map(([flagName, { overwrite }]) => [flagName.replace(`${FEATURE_FLAG_PREFIX}.`, ""), overwrite]) - .filter(([_, overwrite]) => typeof overwrite !== "undefined") + .map(([flagName, { enabled }]) => [flagName.replace(`${FEATURE_FLAG_PREFIX}.`, ""), enabled]) + .filter(([_, enabled]) => typeof enabled !== "undefined") ); setFeatureOverwrites(featureSet);