Skip to content

Commit

Permalink
chore: Enable pipeline experiments in dashboard configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkrumbach07 committed Jun 7, 2024
1 parent 23ae524 commit fd3e7ab
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion backend/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const blankDashboardCR: DashboardConfig = {
disableKServeMetrics: true,
disableModelMesh: false,
disableAcceleratorProfiles: false,
disablePipelineExperiments: true,
disablePipelineExperiments: false,
disableDistributedWorkloads: false,
disableModelRegistry: true,
},
Expand Down
2 changes: 1 addition & 1 deletion docs/dashboard-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ spec:
disableKServeMetrics: true
disableBiasMetrics: false
disablePerformanceMetrics: false
disablePipelineExperiments: true
disablePipelineExperiments: false
notebookController:
enabled: true
gpuSetting: autodetect
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/__mocks__/mockDashboardConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const mockDashboardConfig = ({
disableAcceleratorProfiles = false,
disablePerformanceMetrics = false,
disableBiasMetrics = false,
disablePipelineExperiments = true,
disablePipelineExperiments = false,
disableDistributedWorkloads = false,
disableModelRegistry = true,
disableNotebookController = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import PipelinesTableRowTime from '~/concepts/pipelines/content/tables/Pipelines
import { PipelineRunType } from '~/pages/pipelines/global/runs/types';
import { PipelineRunSearchParam } from '~/concepts/pipelines/content/types';
import { routePipelineRunCreateNamespacePipelinesPage, routePipelineRunsNamespace } from '~/routes';
import { SupportedArea, useIsAreaAvailable } from '~/concepts/areas';

type PipelineVersionTableRowProps = {
isChecked: boolean;
Expand Down Expand Up @@ -35,6 +36,7 @@ const PipelineVersionTableRow: React.FC<PipelineVersionTableRowProps> = ({
const navigate = useNavigate();
const { namespace } = usePipelinesAPI();
const createdDate = new Date(version.created_at);
const isExperimentsAvailable = useIsAreaAvailable(SupportedArea.PIPELINE_EXPERIMENTS).status;

return (
<Tr data-testid={`pipeline-version-row ${version.pipeline_version_id}`}>
Expand Down Expand Up @@ -97,7 +99,9 @@ const PipelineVersionTableRow: React.FC<PipelineVersionTableRowProps> = ({
onClick: () => {
navigate(
{
pathname: routePipelineRunsNamespace(namespace),
pathname: isExperimentsAvailable
? route
: routePipelineRunsNamespace(namespace),
search: `?${PipelineRunSearchParam.RunType}=${PipelineRunType.ACTIVE}`,
},
{
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/pipelines/GlobalPipelinesRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
routePipelinesNamespace,
} from '~/routes';
import GlobalPipelines from './global/pipelines/GlobalPipelines';
import GlobalPipelineRuns from './global/runs/GlobalPipelineRuns';

Check failure on line 25 in frontend/src/pages/pipelines/GlobalPipelinesRoutes.tsx

View workflow job for this annotation

GitHub Actions / Tests (18.x)

'GlobalPipelineRuns' is defined but never used

const GlobalPipelinesRoutes: React.FC = () => (
<ProjectsRoutes>
Expand Down
20 changes: 12 additions & 8 deletions frontend/src/utilities/NavData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,18 @@ const useDSPipelinesNav = (): NavDataItem[] => {
}

return [
{
id: 'pipelines',
group: { id: 'pipelines', title: 'Data Science Pipelines' },
children: [
{ id: 'global-pipelines', label: 'Pipelines', href: routePipelines() },
{ id: 'global-pipeline-runs', label: 'Runs', href: routePipelineRuns() },
],
},
...(isExperimentsAvailable
? [{ id: 'pipelines', label: 'Data Science Pipelines', href: routePipelines() }]
: [
{
id: 'pipelines',
group: { id: 'pipelines', title: 'Data Science Pipelines' },
children: [
{ id: 'global-pipelines', label: 'Pipelines', href: routePipelines() },
{ id: 'global-pipeline-runs', label: 'Runs', href: routePipelineRuns() },
],
},
]),
...(isExperimentsAvailable
? [
{
Expand Down

0 comments on commit fd3e7ab

Please sign in to comment.