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: Differentiate between Fulfilled and Completed #3083
Conversation
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.
tests!
Was already working on them when you made your review 🙂 |
The semantics of "Complete()" are wrong - how can something that was never started ever be completed? I think Example: Alex: "I have completed the washing up" How about: rename |
Completely agreed. I had the same thought but wanted to avoid changing the name if necessary. How about:
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
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.
Conditional approval - can you please double-check the two changes?
@@ -89,7 +89,7 @@ func countPendingRunningCompleted(wf *wfv1.Workflow) (int, int, int) { | |||
if tmpl == nil || !tmpl.IsPodType() { | |||
continue | |||
} | |||
if node.Completed() { | |||
if node.Fulfilled() { | |||
completed++ |
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.
rename variable?
Fixes: #3081