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

[Agg based pie][Lens]Navigate to lens Agg based pie #140879

Merged
merged 304 commits into from
Sep 29, 2022

Conversation

VladLasitsa
Copy link
Contributor

@VladLasitsa VladLasitsa commented Sep 16, 2022

Summary

Completes part of #138236.

As part of phasing out TSVB and Visualize all Legacy agg based visulizations should support "open in lens" functionality.
In that PR converter for Aggregation based Pie was added.

Kuznietsov and others added 30 commits August 24, 2022 15:24
…hub.com:Kunzetsov/kibana into navigate-to-lens-context-converting-imporvement
…hub.com:Kunzetsov/kibana into navigate-to-lens-context-converting-imporvement

# Conflicts:
#	src/plugins/vis_types/timeseries/public/convert_to_lens/types.ts
…hub.com:Kunzetsov/kibana into navigate-to-lens-context-converting-imporvement
…hub.com:Kunzetsov/kibana into navigate-to-lens-context-converting-imporvement
@Kuznietsov Kuznietsov marked this pull request as ready for review September 26, 2022 12:43
@Kuznietsov Kuznietsov requested a review from a team as a code owner September 26, 2022 12:43
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

This looks good. Some comments from my side:

  • I would like to see a functional test that tests the transition from the agg pie to the lens pie.
  • This text here is not aligned with our guidelines. I feel that the aggregation should not start with a capital letter.

image

- If I display the legend in agg pie, the legend is not visible in lens

image

  • I choose to hide the labels but when I navigate to Lens I can see them

image

  • Same for hide values

image

]);
canNavigateToLens ? `render_${visualizationType}_${visType}_convertable` : undefined,
].filter(Boolean) as string[];
plugins.usageCollection?.reportUiCounter(containerType, METRIC_TYPE.COUNT, events);
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this going to measure if the events are undefined? Why don't we allow the reportCounter only if events are defined?

Copy link
Contributor

Choose a reason for hiding this comment

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

@stratoula, as I see from the code, events will always contain render_${visualizationType}_${visType}. WDYT?

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Why aren't we allowed to convert three-slices level pie?
Screenshot 2022-09-26 at 22 51 16

Screenshot 2022-09-26 at 22 51 31

@stratoula
Copy link
Contributor

I agree with Marta and I think we should block the transition when split chart is selected
image

@Kuznietsov
Copy link
Contributor

@stratoula, @mbondyra, while I'm adding functional tests, could you, please, review this PR again? I've fixed all the problems you mentioned. Thanks)

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Rechecked everything and works as expected 👌🏼 Approved!

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Also checked it again, all comments have been addressed! Thanx Yaroslav!

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #15 / machine learning - data frame analytics results view content and total feature importance binary classification job "before all" hook for "should display the total feature importance in the results view"
  • [job] [logs] FTR Configs #49 / telemetry Telemetry service detects that telemetry cannot be sent in screenshot mode

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
visTypePie 13 21 +8

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
visualizations 663 695 +32

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.3MB 1.3MB +450.0B
visTypePie 8.7KB 8.7KB +1.0B
visualizations 239.2KB 239.4KB +226.0B
total +677.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
expressionPartitionVis 23.6KB 23.8KB +195.0B
visTypePie 7.5KB 12.2KB +4.7KB
visualizations 51.2KB 52.1KB +866.0B
total +5.7KB
Unknown metric groups

API count

id before after diff
visualizations 693 725 +32

History

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

cc @VladLasitsa

@Kuznietsov Kuznietsov merged commit ea046ac into elastic:main Sep 29, 2022
@Kuznietsov Kuznietsov removed the WIP Work in progress label Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens Feature:Pie Chart Pie chart visualization feature impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:medium Medium Level of Effort release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants