-
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
Fix events list default sort column #2149
Conversation
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
@@ -108,7 +108,7 @@ export class Events extends React.Component<Props> { | |||
{ title: "Involved Object", className: "object", sortBy: columnId.object, id: columnId.object }, | |||
{ title: "Source", className: "source", id: columnId.source }, | |||
{ title: "Count", className: "count", sortBy: columnId.count, id: columnId.count }, | |||
{ title: "Age", className: "age", sortBy: columnId.age, id: columnId.age }, | |||
{ title: "Last Seen", className: "age", sortBy: columnId.age, id: columnId.age }, |
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.
Line:81 might be broken since creationTimestamp
returns a iso-date string, not timestamp (number)
[columnId.age]: (event: KubeEvent) => event.metadata.creationTimestamp,
Other thing it seems that sorting at Expected behaviour (fixed in #2141) |
@ixrock good findings but those are out of scope for this PR. Let's open separate issues if needed. |
Minimal fix/alternative for #2141 .