Skip to content

Conversation

@Kuznietsov
Copy link
Contributor

@Kuznietsov Kuznietsov commented Feb 11, 2022

Summary

Added filtering of groups to prevent duplications and added sorting of groups by the order of the datasource columns.

@Kuznietsov Kuznietsov added the WIP Work in progress label Feb 11, 2022
@Kuznietsov Kuznietsov self-assigned this Feb 11, 2022
@Kuznietsov Kuznietsov force-pushed the lens-columns-order-layer-panel-fix branch from b870b0c to 5016531 Compare February 11, 2022 09:12
@Kuznietsov Kuznietsov changed the title [WIP][Lens] Fixed the order behavior of the visualization dimensions. [Lens] Fixed the order behavior of the visualization dimensions. Feb 11, 2022
@Kuznietsov Kuznietsov added backport:skip This PR does not require backporting Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.2.0 and removed WIP Work in progress labels Feb 11, 2022
@Kuznietsov Kuznietsov marked this pull request as ready for review February 11, 2022 10:54
@Kuznietsov Kuznietsov requested a review from a team as a code owner February 11, 2022 10:54
@elasticmachine
Copy link
Contributor

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) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: getSortedGroups?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@dej611 dej611 left a 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.

@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.0MB 1.0MB +69.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @Kunzetsov

@Kuznietsov Kuznietsov merged commit 0aba871 into elastic:main Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants