-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Lens] Fixed the order behavior of the visualization dimensions. #125336
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] Fixed the order behavior of the visualization dimensions. #125336
Conversation
b870b0c to
5016531
Compare
|
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
| import type { PieLayerState, PieVisualizationState } from '../../common/expressions'; | ||
| import { getDefaultVisualValuesForLayer } from '../shared_components/datasource_default_values'; | ||
|
|
||
| export const getSortedAccessors = (datasource: DatasourcePublicAPI, layer: PieLayerState) => { |
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.
nit: getSortedGroups?
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.
Yes, makes sense. I'll update the code.
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.
Done.
dej611
left a comment
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.
Tested locally and the bug in #123937 (comment) does not happen, with the behaviour consistent with the one in main.
Probably a new check needs to be performed on #123937 after rebase.
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @Kunzetsov |
Summary
Added filtering of groups to prevent duplications and added sorting of groups by the order of the datasource columns.