From a1bef772dcb00fedb13ab03484b62f989ae93c6c Mon Sep 17 00:00:00 2001 From: James Liu <37026441+zijianjoy@users.noreply.github.com> Date: Fri, 3 Dec 2021 03:18:57 -0800 Subject: [PATCH] feat(frontend): V2 create run from UI (#7001) --- frontend/mock-backend/fixed-data.ts | 6 +++--- frontend/src/pages/RunDetailsRouter.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/mock-backend/fixed-data.ts b/frontend/mock-backend/fixed-data.ts index 2b80b3ee010..97781f3a387 100644 --- a/frontend/mock-backend/fixed-data.ts +++ b/frontend/mock-backend/fixed-data.ts @@ -429,7 +429,7 @@ const runs: ApiRunDetail[] = [ pipeline_spec: { pipeline_id: PIPELINE_V2_XGBOOST.id, pipeline_name: PIPELINE_V2_XGBOOST_DEFAULT.name, - workflow_manifest: JSON.stringify(xgboost_sample_pipeline), + pipeline_manifest: JSON.stringify(xgboost_sample_pipeline), }, resource_references: [ { @@ -457,7 +457,7 @@ const runs: ApiRunDetail[] = [ pipeline_spec: { pipeline_id: PIPELINE_V2_PYTHON_TWO_STEPS_DEFAULT.id, pipeline_name: PIPELINE_V2_PYTHON_TWO_STEPS_DEFAULT.name, - workflow_manifest: JSON.stringify(v2_lightweight_python_pipeline), + pipeline_manifest: JSON.stringify(v2_lightweight_python_pipeline), }, resource_references: [ { @@ -483,7 +483,7 @@ const runs: ApiRunDetail[] = [ id: '3308d0ec-f1b3-4488-a2d3-8ad0f91e88f8', name: 'v2-lightweight-two-steps-jk4u', pipeline_spec: { - workflow_manifest: JSON.stringify(v2_lightweight_python_pipeline), + pipeline_manifest: JSON.stringify(v2_lightweight_python_pipeline), }, resource_references: [ { diff --git a/frontend/src/pages/RunDetailsRouter.tsx b/frontend/src/pages/RunDetailsRouter.tsx index ce7cf48fcd5..2d1a775e9da 100644 --- a/frontend/src/pages/RunDetailsRouter.tsx +++ b/frontend/src/pages/RunDetailsRouter.tsx @@ -43,14 +43,14 @@ export default function RunDetailsRouter(props: RunDetailsProps) { data && data.run && data.run.pipeline_spec && - data.run.pipeline_spec.workflow_manifest + data.run.pipeline_spec.pipeline_manifest ) { // TODO(zijianjoy): We need to switch to use pipeline_manifest for new API implementation. - const isV2Pipeline = WorkflowUtils.isPipelineSpec(data.run.pipeline_spec.workflow_manifest); + const isV2Pipeline = WorkflowUtils.isPipelineSpec(data.run.pipeline_spec.pipeline_manifest); if (isV2Pipeline) { return (