-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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:['value']
in preparation for legend statistics
#181953
[Lens] Save valuesInLegend:true
as legendStats:['value']
in preparation for legend statistics
#181953
Conversation
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
valuesInLegend:true
as legendStats:['values']
in preparation for legend statistics
valuesInLegend:true
as legendStats:['values']
in preparation for legend statistics valuesInLegend:true
as legendStats:['value']
in preparation for legend statistics
…o options from elastic-charts
…es (elastic#182001) Related to elastic#180677 closes elastic#181886 There's still a small difference on the CO2 values, but that's due to different formats returned by ES apis: ``` TopN Functions "self_annual_co2_tons": 0.0068555964801996295 Flamegraph "AnnualCO2TonsInclusive": [ 0.0069, ``` After: <img width="1765" alt="Screenshot 2024-04-29 at 16 34 57" src="https://github.com/elastic/kibana/assets/55978943/092a704f-69fe-4dd0-99d5-9ac9bce77188"> <img width="1788" alt="Screenshot 2024-04-29 at 16 35 03" src="https://github.com/elastic/kibana/assets/55978943/da4a1406-fad7-48de-81ac-e8aae64cba67">
## Summary The PR elastic#182001 was verified at a point where typechecking was missing for a bit, this allowed a missing field to slip in. This PR tries to fix it.
## Summary As usual, the diff through the migration revealed some drifting between our assumed defaults and the defaults on the new infra. This PR re-adjusts the settings to how it was before the migration.
…paration to legend stats
00b0cb6
to
4369808
Compare
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.
Obs Services LGTM
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.
Entity Analytics changes LGTM!
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.
Hey @mbondyra! I have checked the Rule Management changes. LGTM.
Actually, I just noticed one thing: in For "Executions by rule type" and "Executions by status" visualisations The dashboard works just fine, though. And it looks same as in main. Is changing |
…a/kibana into lens/migrate_show_values_stage_2 # Conflicts: # x-pack/plugins/lens/public/visualizations/partition/visualization.test.ts # x-pack/plugins/lens/public/visualizations/xy/visualization.test.tsx # x-pack/plugins/security_solution/server/lib/dashboards/__mocks__/index.ts # x-pack/plugins/security_solution/server/lib/detection_engine/rule_monitoring/logic/detection_engine_health/assets/dashboard_rule_monitoring.json
Hi @nikitaindik thanks for pointing it out. The I fixed it already 🙏🏼 |
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 with different scenarios ( a dashboard from 8.12 and one from the phase 1 state) and all worked fine 👍
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Canvas Sharable Runtime
History
To update your PR or re-run it, just comment with: |
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 propertylegendStats: ["currentAndLastValue"]
(cartesian) orlegendStats: ["value"]
(partition) 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.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.
I won't merge till the end of the week as it has to be released separately from phase 1.