-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Allow sorting on dashboard edit & view #114625
Comments
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
the decision point on this issue: we can implement something simple if it's okay that changing sorting on a dashboard in edit mode doesn't persist it (you have to edit the vis and change the sorting there to persist the sort). we could also not show the sorting options in dashboard edit but that's messing with user expectations. I think it's okay to proceed with including the controls in extra places even with this tradeoff as it's adding value to view mode...but is worth a 🤔 / discussion. |
Blocking this, please don't start working yet |
@flash1293 I have some ideas about this one, so maybe you can tell me if I'm on the right track. UI ChangesGetting the actions to show up in the column dropdown menus is a matter of removing these Sort FunctionalityGetting the sorting to actually work is trickier for a noob like me. I noticed that sorting options appear to be saved in the Lens application's state. Somehow, they are also being persisted (Saved Object?). However, Graham says
so, we're aiming for an ephemeral sort to occur when the user is interacting with this UI outside of the Lens editor (aka as an The data-grid docs seem to suggest that the data-grid can handle sorting by itself (and it looks like we may already take advantage of that by generating sorting arguments and passing them down). So, theoretically all we need to do is make sure the state is updated and the So, that led me to suspect that the sort event isn't being handled in the I can add one easily enough, but all the other Hopefully you can point me in the right direction during our meeting tomorrow, but I wanted to update you on my thinking/exploring so that you know where I'm at! |
Describe the feature:
Expose lens' client side table sorting controls on dashboard view and edit mode
Describe a specific use case for the feature:
When I am view-only looking at a large lens table on a dashboard
I need to interactively change the sort
So I can find interesting data in ways the author of the panel didn't anticipate
The text was updated successfully, but these errors were encountered: