Skip to content

Commit

Permalink
Fix: Version executions not being loaded correctly (flyteorg#647)
Browse files Browse the repository at this point in the history
Fix:Veresion executions not being loaded correctly

Signed-off-by: Jason Porter <[email protected]>

Signed-off-by: Jason Porter <[email protected]>
  • Loading branch information
jsonporter authored Dec 12, 2022
1 parent ab19c54 commit 03f3ee3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions packages/zapp/console/src/components/Entities/generators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,22 @@ export const executionFilterGenerator: {
},
],
[ResourceType.UNSPECIFIED]: noFilters,
[ResourceType.WORKFLOW]: ({ name }) => [
{
key: 'workflow.name',
operation: FilterOperationName.EQ,
value: name,
},
],
[ResourceType.WORKFLOW]: ({ name }, version) =>
version
? [
{
key: 'workflow.version',
operation: FilterOperationName.EQ,
value: version,
},
]
: [
{
key: 'workflow.name',
operation: FilterOperationName.EQ,
value: name,
},
],
};

const workflowListGenerator = ({ project, domain }: ResourceIdentifier) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const WorkflowVersionRow: React.FC<WorkflowVersionRowProps> = ({
workflow.id.version,
)
: [],
[workflow.id],
[workflow.id.version],
);

const executions = useWorkflowExecutions(
Expand Down

0 comments on commit 03f3ee3

Please sign in to comment.