-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [tlm] comprehensive node execution query (#749)
* chore: comprehensive node execution query Signed-off-by: Carina Ursu <[email protected]> * chore: fix graph render bug Signed-off-by: Carina Ursu <[email protected]> * chore: test fixes Signed-off-by: Carina Ursu <[email protected]> * chore: additions Signed-off-by: Carina Ursu <[email protected]> * chore: build fix? Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]>
- Loading branch information
1 parent
957f9fa
commit 8f8d686
Showing
38 changed files
with
377 additions
and
188 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './DataError'; |
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
28 changes: 5 additions & 23 deletions
28
packages/console/src/components/Executions/ExecutionDetails/ExecutionNodeViews.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 |
---|---|---|
@@ -1,32 +1,14 @@ | ||
import React, { useContext } from 'react'; | ||
import { WaitForQuery } from 'components/common'; | ||
import { DataError } from 'components/Errors/DataError'; | ||
import { LargeLoadingComponent } from 'components/common/LoadingSpinner'; | ||
import { ExecutionContext } from '../contexts'; | ||
import { useExecutionNodeViewsStatePoll } from './useExecutionNodeViewsState'; | ||
import React from 'react'; | ||
import { ExecutionTabView } from './ExecutionTabView'; | ||
import { WorkflowNodeExecutionsProvider } from '../contextProvider/NodeExecutionDetails'; | ||
import { ExecutionDetailsAppBarContent } from './ExecutionDetailsAppBarContent'; | ||
|
||
/** Contains the available ways to visualize the nodes of a WorkflowExecution */ | ||
export const ExecutionNodeViews: React.FC<{}> = () => { | ||
const { execution } = useContext(ExecutionContext); | ||
|
||
// query to get all data to build Graph and Timeline | ||
const { nodeExecutionsQuery } = useExecutionNodeViewsStatePoll(execution); | ||
|
||
return ( | ||
<> | ||
<WaitForQuery | ||
query={nodeExecutionsQuery} | ||
errorComponent={DataError} | ||
loadingComponent={LargeLoadingComponent} | ||
> | ||
{data => ( | ||
<WorkflowNodeExecutionsProvider initialNodeExecutions={data}> | ||
<ExecutionTabView /> | ||
</WorkflowNodeExecutionsProvider> | ||
)} | ||
</WaitForQuery> | ||
<ExecutionDetailsAppBarContent /> | ||
|
||
<ExecutionTabView /> | ||
</> | ||
); | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/console/src/components/Executions/ExecutionDetails/index.ts
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,3 @@ | ||
export * from './ExecutionDetails'; | ||
export * from './ExecutionDetailsActions'; | ||
export * from './useExecutionNodeViewsState'; |
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
2 changes: 2 additions & 0 deletions
2
packages/console/src/components/Executions/TaskExecutionsList/index.ts
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,2 @@ | ||
export * from './TaskExecutionDetails'; | ||
export * from './utils'; |
Oops, something went wrong.