diff --git a/frontend/src/__tests__/cypress/cypress/e2e/pipelines/PipelinesTopology.cy.ts b/frontend/src/__tests__/cypress/cypress/e2e/pipelines/PipelinesTopology.cy.ts index f0240a21d4..8b741cc0de 100644 --- a/frontend/src/__tests__/cypress/cypress/e2e/pipelines/PipelinesTopology.cy.ts +++ b/frontend/src/__tests__/cypress/cypress/e2e/pipelines/PipelinesTopology.cy.ts @@ -311,13 +311,13 @@ describe('Pipeline topology', () => { it('Test pipeline run duplicate navigation', () => { pipelineRunDetails.visit(projectId, mockRun.run_id); - pipelineRunDetails.selectActionDropdownItem('Duplicate'); + pipelineRunDetails.selectActionDropdownItem('Clone'); verifyRelativeURL(`/pipelineRuns/${projectId}/pipelineRun/clone/${mockRun.run_id}`); }); it('Test pipeline job duplicate navigation', () => { pipelineRunJobDetails.visit(projectId, mockJob.recurring_run_id); - pipelineRunJobDetails.selectActionDropdownItem('Duplicate'); + pipelineRunJobDetails.selectActionDropdownItem('Clone'); verifyRelativeURL( `/pipelineRuns/${projectId}/pipelineRun/cloneJob/${mockJob.recurring_run_id}?runType=scheduled`, ); diff --git a/frontend/src/api/pipelines/custom.ts b/frontend/src/api/pipelines/custom.ts index a1e6c4c95c..8a456a01c2 100644 --- a/frontend/src/api/pipelines/custom.ts +++ b/frontend/src/api/pipelines/custom.ts @@ -235,10 +235,8 @@ export const stopPipelineRun: UpdatePipelineRunAPI = (hostPath) => (opts, runId) proxyENDPOINT(hostPath, `/apis/v2beta1/runs/${runId}:terminate`, {}, opts), ); - export const retryPipelineRun: UpdatePipelineRunAPI = (hostPath) => (opts, runId) => - handlePipelineFailures( - proxyENDPOINT(hostPath, `/apis/v2beta1/runs/${runId}:retry`, {}, opts), - ); +export const retryPipelineRun: UpdatePipelineRunAPI = (hostPath) => (opts, runId) => + handlePipelineFailures(proxyENDPOINT(hostPath, `/apis/v2beta1/runs/${runId}:retry`, {}, opts)); export const updatePipelineRunJob: UpdatePipelineRunJobAPI = (hostPath) => (opts, jobId, enabled) => handlePipelineFailures( diff --git a/frontend/src/concepts/pipelines/content/utils.tsx b/frontend/src/concepts/pipelines/content/utils.tsx index df1d2951e3..f7c139050b 100644 --- a/frontend/src/concepts/pipelines/content/utils.tsx +++ b/frontend/src/concepts/pipelines/content/utils.tsx @@ -31,7 +31,8 @@ export type RunStatusDetails = { const UNKNOWN_ICON = ; const UNKNOWN_STATUS = 'warning'; -export const getStorageState = (run?: PipelineRunKFv2 | null): StorageStateKF | undefined => run?.storage_state; +export const getStorageState = (run?: PipelineRunKFv2 | null): StorageStateKF | undefined => + run?.storage_state; export const computeRunStatus = (run?: PipelineRunKFv2 | null): RunStatusDetails => { if (!run) {