-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(#278): wrong nodeExecutions details are showed in node executions list #277
Conversation
Signed-off-by: Nastya Rusina <nastya@union.ai>
Signed-off-by: Nastya Rusina <nastya@union.ai>
Signed-off-by: Nastya Rusina <nastya@union.ai>
</ExecutionContext.Provider> | ||
</NodeExecutionsRequestConfigContext.Provider> | ||
</QueryClientProvider> | ||
); | ||
|
||
describe('when rendering the DetailsPanel', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is moved as is with addition of fetchWorkflow mock implementation from the bottom of the file, as I wasn't able to fully clear jest.spyOn() effect, which was messing up with this test return.
added:
fetchWorkflow.mockImplementation(() =>
Promise.resolve(fixture.workflows.top)
);
Codecov Report
@@ Coverage Diff @@
## master #277 +/- ##
=========================================
Coverage ? 65.77%
=========================================
Files ? 380
Lines ? 8438
Branches ? 1538
=========================================
Hits ? 5550
Misses ? 2888
Partials ? 0 Continue to review full report at Codecov.
|
Signed-off-by: Nastya Rusina <nastya@union.ai>
<div className={styles.filters}> | ||
<ExecutionFilters {...filterState} /> | ||
</div> | ||
<NodeExecutionDetailsContextProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only change here: wrapped Tabs content with NodeExecutionDetailsContextProvider. github compare just gone rogue :)
@@ -4,12 +4,6 @@ import { | |||
NodeExecutionMetadata, | |||
WorkflowNodeMetadata | |||
} from 'models/Execution/types'; | |||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code and below is removed as not in use anymore
@@ -75,7 +74,7 @@ export function convertFlyteGraphToDAG( | |||
|
|||
// Filter out any nodes with no parents (except for the start node) | |||
const result = values(nodeMap).filter( | |||
n => n.id === nodeIds.start || (n.parentIds && n.parentIds.length > 0) | |||
n => n.id === startNodeId || (n.parentIds && n.parentIds.length > 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodeIds.start was using same string to compare, replaced with startNodeId for consistency with other code.
const nodeExecutionQuery = useQuery<NodeExecution, Error>({ | ||
...makeNodeExecutionQuery(nodeExecutionId), | ||
// The selected NodeExecution has been fetched at this point, we don't want to | ||
// issue an additional fetch. | ||
staleTime: Infinity | ||
}); | ||
|
||
React.useEffect(() => { | ||
let isCurrent = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I understand this? Won't this always be true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would change to false, whenever return() is called (in this case on component unmount)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment, just needs clarify - otherwise lgtm 👍
## [0.42.1](http://github.com/lyft/flyteconsole/compare/v0.42.0...v0.42.1) (2022-02-11) ### Bug Fixes * **#278:** wrong nodeExecutions details are showed in node executions list ([#277](http://github.com/lyft/flyteconsole/issues/277)) ([15878ab](http://github.com/lyft/flyteconsole/commit/15878abe4e31f79ae3afbf29ab41b66e941e6ee1)), closes [#278](http://github.com/lyft/flyteconsole/issues/278)
🎉 This PR is included in version 0.42.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Issue: Wrong node execution details are shown if scopeId for two items are the same.
It is a partial fix, which solves naming for items with same scopeId, where parent have different scopeId.
Fully solving the issue requires us to do some infrastructure work: https://github.com/flyteorg/flyteconsole/issues/279
Type
Are all requirements met?
Complete description
Video walk through through test cases:
Part 1 (~1.5 min): https://share.getcloudapp.com/12u0QnAw (nested, branch, simple dynamic)
Part 2 (30 sec): https://share.getcloudapp.com/X6u8nPQK (branch + dynamic)
This PR:
Tested with next workflows:
Nested:
Branch
Dynamic
fixes https://github.com/flyteorg/flyte/issues/
Follow-up issue
Behavior should be fully fixed by Infra task: https://github.com/flyteorg/flyteconsole/issues/279