From 150a013a975bdff60729bef42a48a8720ade8fc8 Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:34:57 -0400 Subject: [PATCH] fix linting issues --- .../concepts/pipelines/topology/usePipelineTaskTopology.ts | 5 ++--- frontend/src/concepts/topology/types.ts | 1 - frontend/src/concepts/topology/useTopologyController.ts | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/frontend/src/concepts/pipelines/topology/usePipelineTaskTopology.ts b/frontend/src/concepts/pipelines/topology/usePipelineTaskTopology.ts index 2d33743d2d..0536c80cb1 100644 --- a/frontend/src/concepts/pipelines/topology/usePipelineTaskTopology.ts +++ b/frontend/src/concepts/pipelines/topology/usePipelineTaskTopology.ts @@ -1,6 +1,7 @@ -import { PipelineRunKFv2, PipelineSpecVariable, TaskKF } from '~/concepts/pipelines/kfTypes'; +import { PipelineRunKFv2, PipelineSpecVariable } from '~/concepts/pipelines/kfTypes'; import { createNode } from '~/concepts/topology'; import { PipelineNodeModelExpanded } from '~/concepts/topology/types'; +import { createArtifactNode } from '~/concepts/topology/utils'; import { composeArtifactType, parseComponentsForArtifactRelationship, @@ -11,7 +12,6 @@ import { translateStatusForNode, } from './parseUtils'; import { KubeFlowTaskTopology } from './pipelineTaskTypes'; -import { createArtifactNode } from '~/concepts/topology/utils'; const EMPTY_STATE: KubeFlowTaskTopology = { taskMap: {}, nodes: [] }; @@ -43,7 +43,6 @@ export const usePipelineTaskTopology = ( const component = components[componentRef]; const artifactsInComponent = componentArtifactMap[componentRef]; const isGroupNode = !!component?.dag; - const groupTasks = component?.dag?.tasks; const executorLabel = component?.executorLabel; const executor = executorLabel ? executors[executorLabel] : undefined; diff --git a/frontend/src/concepts/topology/types.ts b/frontend/src/concepts/topology/types.ts index 88db4c1ba4..1c35f045b2 100644 --- a/frontend/src/concepts/topology/types.ts +++ b/frontend/src/concepts/topology/types.ts @@ -1,5 +1,4 @@ import { PipelineNodeModel, RunStatus, WhenStatus } from '@patternfly/react-topology'; -import React from 'react'; export type NodeConstructDetails = { id: string; diff --git a/frontend/src/concepts/topology/useTopologyController.ts b/frontend/src/concepts/topology/useTopologyController.ts index f21a252b1e..35e0eb52ba 100644 --- a/frontend/src/concepts/topology/useTopologyController.ts +++ b/frontend/src/concepts/topology/useTopologyController.ts @@ -7,9 +7,7 @@ import { PipelineDagreGroupsLayout, Visualization, } from '@patternfly/react-topology'; -import { - pipelineComponentFactory, -} from '~/concepts/topology/factories'; +import { pipelineComponentFactory } from '~/concepts/topology/factories'; import { PIPELINE_LAYOUT, PIPELINE_NODE_SEPARATION_VERTICAL } from './const'; const useTopologyController = (graphId: string): Visualization | null => {