Skip to content
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] Save valuesInLegend:true as legendStats:['values'] in preparation for legend statistics #181663

Closed
wants to merge 1 commit into from

Conversation

mbondyra
Copy link
Contributor

@mbondyra mbondyra commented Apr 25, 2024

Summary

To the code owners,

This PR updates the saved object of Lens with the following changes: the property valuesInLegend: boolean is converted to the new property legendStats: ["values"] to accommodate displaying additional legend statistics in the future. There are no user-facing changes introduced. I have updated all saved object shapes in the code to adhere to the new structure. While the old structure will continue to function properly, this update ensures cleaner code organization.

Fixes #181035 (phase 2). It's is a continuation of #180917.

In comparison to the phase 1, we've removed the conversion of legendStats to valuesInLegend which was initially added in the previous PR to ensure backward compatibility for serverless applications.

Screenshot 2024-04-25 at 10 51 50

@mbondyra mbondyra force-pushed the migrate_show_values_stage_2 branch 2 times, most recently from 00fe0c5 to 3cb1de9 Compare April 25, 2024 09:14
@elastic elastic deleted a comment from kibana-ci Apr 25, 2024
@mbondyra mbondyra added Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:skip Skip the PR/issue when compiling release notes Feature:Lens v8.15.0 labels Apr 25, 2024
@mbondyra mbondyra force-pushed the migrate_show_values_stage_2 branch from 3cb1de9 to a271008 Compare April 26, 2024 09:17
@mbondyra
Copy link
Contributor Author

/ci

@kibana-ci
Copy link
Collaborator

💚 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
apm 3.2MB 3.2MB -81.0B
lens 1.4MB 1.4MB -501.0B
securitySolution 17.3MB 17.3MB +75.0B
ux 169.9KB 169.9KB +1.0B
total -506.0B

History

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

@mbondyra mbondyra closed this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] Support new legendStats and old valuesInLegend saved object properties
2 participants