Skip to content

[Lens] Refactor xy visualization methods#125651

Merged
mbondyra merged 11 commits intoelastic:mainfrom
mbondyra:lens/annotations
Feb 17, 2022
Merged

[Lens] Refactor xy visualization methods#125651
mbondyra merged 11 commits intoelastic:mainfrom
mbondyra:lens/annotations

Conversation

@mbondyra
Copy link
Copy Markdown
Contributor

@mbondyra mbondyra commented Feb 15, 2022

Summary

Extracts some parts of xy visualization that touch reference lines to make it easier to add annotations.
These changes are just moving parts around, there's nothing serious here.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@mbondyra mbondyra added Feature:Lens 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 labels Feb 15, 2022
@mbondyra mbondyra force-pushed the lens/annotations branch 4 times, most recently from 19e8f36 to 91ae2d9 Compare February 15, 2022 17:11
@mbondyra mbondyra changed the title [Lens] Refactor xy visualization [Lens] Refactor xy visualization methods Feb 15, 2022
@mbondyra mbondyra marked this pull request as ready for review February 15, 2022 21:19
@mbondyra mbondyra requested a review from a team as a code owner February 15, 2022 21:19
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

Copy link
Copy Markdown
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

LGTM, tested and everything still works, code changes make sense to me. I'm not sure about the translations, but it's not a blocker for merging.

"xpack.lens.xyChart.bottomAxisLabel": "下の軸",
"xpack.lens.xyChart.boundaryError": "下界は上界よりも大きくなければなりません",
"xpack.lens.xyChart.chartTypeLabel": "チャートタイプ",
"xpack.lens.xyChart.chartTypeLegend": "チャートタイプ",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

so these two belong to the component that was not used but wasn't removed (LayerContextMenu)

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
lens 742 747 +5

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.1MB 1.1MB +818.0B

History

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

@mbondyra mbondyra merged commit a29c81b into elastic:main Feb 17, 2022
@mbondyra mbondyra deleted the lens/annotations branch February 17, 2022 16:53
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 125651 or prevent reminders by adding the backport:skip label.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 21, 2022
@stratoula stratoula added the backport:skip This PR does not require backporting label Feb 22, 2022
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 22, 2022
lucasfcosta pushed a commit to lucasfcosta/kibana that referenced this pull request Mar 2, 2022
* little helper to check layer types

* refactor visualization p1

* fix eslint

* divide flyout

* fix typo

* rename yConfig to config

* move LabelInput so it can be used by visualization too - rename becasue the same name is used for labelInput on filters and intervals

* i18n fix

* p2
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 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.

6 participants