mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: remove variant dependencies flag (#6896)
This commit is contained in:
parent
af54e272d2
commit
44521c1c74
@ -14,9 +14,6 @@ const setupApi = () => {
|
|||||||
versionInfo: {
|
versionInfo: {
|
||||||
current: { oss: 'irrelevant', enterprise: 'some value' },
|
current: { oss: 'irrelevant', enterprise: 'some value' },
|
||||||
},
|
},
|
||||||
flags: {
|
|
||||||
variantDependencies: true,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
testServerRoute(
|
testServerRoute(
|
||||||
|
@ -4,7 +4,6 @@ import { Dialogue } from 'component/common/Dialogue/Dialogue';
|
|||||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||||
import { useChangeRequestsEnabled } from 'hooks/useChangeRequestsEnabled';
|
import { useChangeRequestsEnabled } from 'hooks/useChangeRequestsEnabled';
|
||||||
import { DependenciesUpgradeAlert } from './DependenciesUpgradeAlert';
|
import { DependenciesUpgradeAlert } from './DependenciesUpgradeAlert';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
import type { IDependency } from '../../../interfaces/featureToggle';
|
import type { IDependency } from '../../../interfaces/featureToggle';
|
||||||
import { ParentVariantOptions } from './ParentVariantOptions';
|
import { ParentVariantOptions } from './ParentVariantOptions';
|
||||||
import { type ParentValue, REMOVE_DEPENDENCY_OPTION } from './constants';
|
import { type ParentValue, REMOVE_DEPENDENCY_OPTION } from './constants';
|
||||||
@ -64,12 +63,9 @@ export const AddDependencyDialogue = ({
|
|||||||
const { isChangeRequestConfiguredInAnyEnv } =
|
const { isChangeRequestConfiguredInAnyEnv } =
|
||||||
useChangeRequestsEnabled(project);
|
useChangeRequestsEnabled(project);
|
||||||
|
|
||||||
const variantDependenciesEnabled = useUiFlag('variantDependencies');
|
const showStatus = parent !== REMOVE_DEPENDENCY_OPTION.key;
|
||||||
const showStatus =
|
|
||||||
parent !== REMOVE_DEPENDENCY_OPTION.key && variantDependenciesEnabled;
|
|
||||||
const showVariants =
|
const showVariants =
|
||||||
parent !== REMOVE_DEPENDENCY_OPTION.key &&
|
parent !== REMOVE_DEPENDENCY_OPTION.key &&
|
||||||
variantDependenciesEnabled &&
|
|
||||||
parentValue.status === 'enabled_with_variants';
|
parentValue.status === 'enabled_with_variants';
|
||||||
|
|
||||||
const selectStatus = (value: string) => {
|
const selectStatus = (value: string) => {
|
||||||
|
@ -13,9 +13,6 @@ const setupApi = () => {
|
|||||||
versionInfo: {
|
versionInfo: {
|
||||||
current: { oss: 'irrelevant', enterprise: 'some value' },
|
current: { oss: 'irrelevant', enterprise: 'some value' },
|
||||||
},
|
},
|
||||||
flags: {
|
|
||||||
variantDependencies: true,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
testServerRoute(server, '/api/admin/projects/default/features/feature', {});
|
testServerRoute(server, '/api/admin/projects/default/features/feature', {});
|
||||||
testServerRoute(
|
testServerRoute(
|
||||||
|
@ -78,7 +78,6 @@ export type UiFlags = {
|
|||||||
projectOverviewRefactor?: string;
|
projectOverviewRefactor?: string;
|
||||||
displayTrafficDataUsage?: boolean;
|
displayTrafficDataUsage?: boolean;
|
||||||
disableShowContextFieldSelectionValues?: boolean;
|
disableShowContextFieldSelectionValues?: boolean;
|
||||||
variantDependencies?: boolean;
|
|
||||||
projectOverviewRefactorFeedback?: boolean;
|
projectOverviewRefactorFeedback?: boolean;
|
||||||
featureLifecycle?: boolean;
|
featureLifecycle?: boolean;
|
||||||
scimApi?: boolean;
|
scimApi?: boolean;
|
||||||
|
@ -149,7 +149,6 @@ exports[`should create default config 1`] = `
|
|||||||
"strictSchemaValidation": false,
|
"strictSchemaValidation": false,
|
||||||
"useMemoizedActiveTokens": false,
|
"useMemoizedActiveTokens": false,
|
||||||
"userAccessUIEnabled": false,
|
"userAccessUIEnabled": false,
|
||||||
"variantDependencies": false,
|
|
||||||
},
|
},
|
||||||
"externalResolver": {
|
"externalResolver": {
|
||||||
"getVariant": [Function],
|
"getVariant": [Function],
|
||||||
|
@ -52,7 +52,6 @@ export type IFlagKey =
|
|||||||
| 'scimApi'
|
| 'scimApi'
|
||||||
| 'displayEdgeBanner'
|
| 'displayEdgeBanner'
|
||||||
| 'projectOverviewRefactor'
|
| 'projectOverviewRefactor'
|
||||||
| 'variantDependencies'
|
|
||||||
| 'disableShowContextFieldSelectionValues'
|
| 'disableShowContextFieldSelectionValues'
|
||||||
| 'bearerTokenMiddleware'
|
| 'bearerTokenMiddleware'
|
||||||
| 'projectOverviewRefactorFeedback'
|
| 'projectOverviewRefactorFeedback'
|
||||||
@ -262,10 +261,6 @@ const flags: IFlags = {
|
|||||||
.UNLEASH_EXPERIMENTAL_DISABLE_SHOW_CONTEXT_FIELD_SELECTION_VALUES,
|
.UNLEASH_EXPERIMENTAL_DISABLE_SHOW_CONTEXT_FIELD_SELECTION_VALUES,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
variantDependencies: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_VARIANT_DEPENDENCIES,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
bearerTokenMiddleware: parseEnvVarBoolean(
|
bearerTokenMiddleware: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_BEARER_TOKEN_MIDDLEWARE,
|
process.env.UNLEASH_EXPERIMENTAL_BEARER_TOKEN_MIDDLEWARE,
|
||||||
false,
|
false,
|
||||||
|
@ -49,7 +49,6 @@ process.nextTick(async () => {
|
|||||||
outdatedSdksBanner: true,
|
outdatedSdksBanner: true,
|
||||||
projectOverviewRefactor: true,
|
projectOverviewRefactor: true,
|
||||||
disableShowContextFieldSelectionValues: false,
|
disableShowContextFieldSelectionValues: false,
|
||||||
variantDependencies: true,
|
|
||||||
projectOverviewRefactorFeedback: true,
|
projectOverviewRefactorFeedback: true,
|
||||||
featureLifecycle: true,
|
featureLifecycle: true,
|
||||||
projectListFilterMyProjects: true,
|
projectListFilterMyProjects: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user