Skip to content

Commit

Permalink
Dashboard shows cached pipeline steps in gray (no info about what it …
Browse files Browse the repository at this point in the history
…means)
  • Loading branch information
dpanshug committed Jun 12, 2024
1 parent 74513a0 commit 52934cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ describe('pipeline topology parseUtils', () => {
{ state: RuntimeStateKF.SKIPPED, status: RunStatus.Skipped },
{ state: RuntimeStateKF.SUCCEEDED, status: RunStatus.Succeeded },
{ state: ExecutionStateKF.CANCELED, status: RunStatus.Cancelled },
{ state: ExecutionStateKF.CACHED, status: RunStatus.Skipped },
{ state: ExecutionStateKF.CACHED, status: RunStatus.Succeeded },
{ state: ExecutionStateKF.COMPLETE, status: RunStatus.Succeeded },
{ state: ExecutionStateKF.FAILED, status: RunStatus.Failed },
{ state: ExecutionStateKF.RUNNING, status: RunStatus.Running },
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/concepts/pipelines/topology/parseUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ export const translateStatusForNode = (
return RunStatus.InProgress;
case ExecutionStateKF.COMPLETE:
case RuntimeStateKF.SUCCEEDED:
return RunStatus.Succeeded;
case ExecutionStateKF.CACHED:
return RunStatus.Succeeded;
case RuntimeStateKF.SKIPPED:
return RunStatus.Skipped;
case RuntimeStateKF.RUNTIME_STATE_UNSPECIFIED:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import {
WithContextMenuProps,
WithSelectionProps,
} from '@patternfly/react-topology';
import { AngleDoubleRightIcon } from '@patternfly/react-icons';
import { PipelineNodeModelExpanded } from '~/concepts/topology/types';
import { ExecutionStateKF } from '~/concepts/pipelines/kfTypes';

type StandardTaskNodeProps = {
element: GraphElement<PipelineNodeModelExpanded>;
Expand Down Expand Up @@ -45,6 +47,11 @@ const StandardTaskNode: React.FunctionComponent<StandardTaskNodeProps> = ({
selected={selected}
scaleNode={hover && detailsLevel !== ScaleDetailsLevel.high}
status={data?.runStatus}
customStatusIcon={
data?.pipelineTask.status?.state === ExecutionStateKF.CACHED ? (
<AngleDoubleRightIcon />

Check warning on line 52 in frontend/src/concepts/topology/customNodes/StandardTaskNode.tsx

View check run for this annotation

Codecov / codecov/patch

frontend/src/concepts/topology/customNodes/StandardTaskNode.tsx#L52

Added line #L52 was not covered by tests
) : undefined
}
hideDetailsAtMedium
hiddenDetailsShownStatuses={[
RunStatus.Succeeded,
Expand Down

0 comments on commit 52934cc

Please sign in to comment.