forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Checkin and merge to master Signed-off-by: Jason Porter <[email protected]> * Fix: removed console.log statements Signed-off-by: Jason Porter <[email protected]> * Fix: added color for node phase unknown Signed-off-by: Jason Porter <[email protected]> * Removed commented debugging code Signed-off-by: Jason Porter <[email protected]> Co-authored-by: Jason Porter <[email protected]>
- Loading branch information
1 parent
e8f8cdb
commit 950950d
Showing
32 changed files
with
31,380 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/components/Executions/ExecutionDetails/ExecutionChildrenLoader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { WaitForQuery } from 'components/common/WaitForQuery'; | ||
import { DataError } from 'components/Errors/DataError'; | ||
import * as React from 'react'; | ||
import { useAllChildNodeExecutionGroupsQuery } from '../nodeExecutionQueries'; | ||
import { NodeExecutionsRequestConfigContext } from '../contexts'; | ||
import { ExecutionWorkflowGraph } from './ExecutionWorkflowGraph'; | ||
import { NodeExecution } from 'models/Execution/types'; | ||
|
||
export const ExecutionChildrenLoader = ({ nodeExecutions, workflowId }) => { | ||
const requestConfig = React.useContext(NodeExecutionsRequestConfigContext); | ||
const childGroupsQuery = useAllChildNodeExecutionGroupsQuery( | ||
nodeExecutions, | ||
requestConfig | ||
); | ||
|
||
const renderGraphComponent = childGroups => { | ||
const output: any[] = []; | ||
for (let i = 0; i < childGroups.length; i++) { | ||
for (let j = 0; j < childGroups[i].length; j++) { | ||
for ( | ||
let k = 0; | ||
k < childGroups[i][j].nodeExecutions.length; | ||
k++ | ||
) { | ||
output.push( | ||
childGroups[i][j].nodeExecutions[k] as NodeExecution | ||
); | ||
} | ||
} | ||
} | ||
const executions: NodeExecution[] = output.concat(nodeExecutions); | ||
return nodeExecutions.length > 0 ? ( | ||
<ExecutionWorkflowGraph | ||
nodeExecutions={executions} | ||
workflowId={workflowId} | ||
/> | ||
) : null; | ||
}; | ||
|
||
return ( | ||
<WaitForQuery errorComponent={DataError} query={childGroupsQuery}> | ||
{renderGraphComponent} | ||
</WaitForQuery> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.