Skip to content

Commit 44c9922

Browse files
committed
Rename flag and add to backend
1 parent f185ea4 commit 44c9922

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

backend/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export type DashboardConfig = K8sResourceCommon & {
5757
disableLLMd: boolean;
5858
projectRBAC: boolean;
5959
maasApiKeys: boolean;
60+
deploymentWizardYAMLViewer: boolean;
6061
};
6162
// Intentionally disjointed from the CRD, we should move away from this code-wise now; CRD later
6263
// groupsConfig?: {

backend/src/utils/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export const blankDashboardCR: DashboardConfig = {
9191
trainingJobs: true,
9292
disableLLMd: false,
9393
projectRBAC: true,
94+
deploymentWizardYAMLViewer: false,
9495
},
9596
notebookController: {
9697
enabled: true,

frontend/src/__mocks__/mockDashboardConfig.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export type MockDashboardConfigType = {
5050
mlflow?: boolean;
5151
projectRBAC?: boolean;
5252
disableLLMd?: boolean;
53-
YAMLViewer?: boolean;
53+
deploymentWizardYAMLViewer?: boolean;
5454
};
5555

5656
export const mockDashboardConfig = ({
@@ -94,7 +94,7 @@ export const mockDashboardConfig = ({
9494
trainingJobs = true,
9595
observabilityDashboard = false,
9696
disableLLMd = false,
97-
YAMLViewer = false,
97+
deploymentWizardYAMLViewer = false,
9898
hardwareProfileOrder = ['test-hardware-profile'],
9999
modelServerSizes = [
100100
{
@@ -261,7 +261,7 @@ export const mockDashboardConfig = ({
261261
trainingJobs,
262262
observabilityDashboard,
263263
disableLLMd,
264-
YAMLViewer,
264+
deploymentWizardYAMLViewer,
265265
},
266266
notebookController: {
267267
enabled: !disableNotebookController,

frontend/src/concepts/areas/const.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const techPreviewFlags = {
1010
mlflow: false,
1111
projectRBAC: true,
1212
observabilityDashboard: false,
13-
YAMLViewer: false,
13+
deploymentWizardYAMLViewer: false,
1414
} satisfies Partial<DashboardCommonConfig>;
1515

1616
export const devTemporaryFeatureFlags = {
@@ -209,7 +209,7 @@ export const SupportedAreasStateMap: SupportedAreasState = {
209209
featureFlags: ['projectRBAC'],
210210
},
211211
[SupportedArea.YAML_VIEWER]: {
212-
featureFlags: ['YAMLViewer'],
212+
featureFlags: ['deploymentWizardYAMLViewer'],
213213
reliantAreas: [SupportedArea.LLMD_SERVING],
214214
},
215215
};

frontend/src/k8sTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ export type DashboardCommonConfig = {
13081308
projectRBAC?: boolean;
13091309
observabilityDashboard?: boolean;
13101310
disableLLMd?: boolean;
1311-
YAMLViewer?: boolean;
1311+
deploymentWizardYAMLViewer?: boolean;
13121312
};
13131313

13141314
// [1] Intentionally disjointed fields from the CRD in this type definition

0 commit comments

Comments
 (0)