-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cherry pick PR #3205 into release/v1.0 branch. #4143
Conversation
This fixes #3807.
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.
✅ A review job has been created and sent to the PullRequest network.
@martinmr you can click here to see the review status or cancel the code review job.
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.
@@ -2135,6 +2118,24 @@ func ProcessGraph(ctx context.Context, sg, parent *SubGraph, rch chan error) { | |||
childErr = err | |||
} | |||
} | |||
|
|||
if sg.DestUIDs == nil || len(sg.DestUIDs.Uids) == 0 { | |||
// Looks like we're done here. Be careful with nil srcUIDs! |
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.
We should add more context to this comment. Why should we be careful with srcUIDs == nil
? We don't use it here either.
} | ||
out = append(out, child) | ||
} | ||
sg.Children = out // Remove any expand nodes we might have added. |
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.
Comment should be on top of the for loop, since its describing the for loop process.
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.
Reviewed 3 of 3 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @danielmai and @martinmr)
This fixes #3807.
This change is