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 11, 2024
1 parent f7c9979 commit aeeb8ab
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
8 changes: 4 additions & 4 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@patternfly/react-styles": "^5.2.1",
"@patternfly/react-table": "^5.2.1",
"@patternfly/react-tokens": "^5.2.1",
"@patternfly/react-topology": "^5.4.0-prerelease.1",
"@patternfly/react-topology": "^5.4.0-prerelease.6",
"@patternfly/react-virtualized-extension": "^5.0.0",
"@types/classnames": "^2.3.1",
"axios": "^1.6.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,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 @@ -301,8 +301,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 />
) : undefined
}
hideDetailsAtMedium
hiddenDetailsShownStatuses={[
RunStatus.Succeeded,
Expand Down

0 comments on commit aeeb8ab

Please sign in to comment.