-
Notifications
You must be signed in to change notification settings - Fork 22
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
KUBESAW-43: Introduce LastUpdatedTime as prefered one #398
KUBESAW-43: Introduce LastUpdatedTime as prefered one #398
Conversation
Signed-off-by: Feny Mehta <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #398 +/- ##
==========================================
+ Coverage 77.98% 78.06% +0.07%
==========================================
Files 47 47
Lines 1958 1965 +7
==========================================
+ Hits 1527 1534 +7
Misses 373 373
Partials 58 58
|
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.
Looks good to me 👍
if condition.LastUpdatedTime != nil { | ||
return *condition.LastUpdatedTime | ||
} | ||
return condition.LastProbeTime |
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.
Could you please add/update the unit tests so it verifies that it give the LastUpdatedTime preference and if not set then it takes the LastProbeTime?
I mean, let's verify that it works when either from these two fields are not set. If I'm not mistaken, the current unit tests sets both fields
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.
added it
Signed-off-by: Feny Mehta <[email protected]>
Quality Gate passedIssues Measures |
After making the
LastProbeTime
optional, introduceLastUpdatedTime
as the preferred oneThis is the next step after codeready-toolchain/api#420
This is related to