-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 Toggle Faults filtering #2509
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.
@eiachh Thanks for this update Adam!
internal/dao/workload.go
Outdated
@@ -187,6 +188,15 @@ func diagnose(gvr client.GVR, r metav1.TableRow, h []metav1.TableColumnDefinitio | |||
return StatusOK | |||
} | |||
|
|||
func validity(gvr client.GVR, r metav1.TableRow, h []metav1.TableColumnDefinition) string { |
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 ends up calling status again. Perhaps best to call it once and pass in status here to determine validity?
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.
Changed validity func to take status as string in the parameters.
@derailed Thank you for the review, changed what you requested. Let me know if something else needs to be changed still. |
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.
@eiachh Nice!! Thank you for the updates Adam!
* Added valid column to workloads for toast filtering * Removed redundant status func call, changed workload header order
(Closed the previous pull request by mistake sorry)
Added extra column "VALID" into workload render, so toast can filter based on it. 2453
Also changed the name of the functions:
status->readiness
diagnose-> status
Since the column with header "STATUS" was not using the status function.