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

Lazy load metric & mardown visualizations #78391

Merged
merged 9 commits into from Sep 28, 2020

Conversation

sulemanof
Copy link
Contributor

@sulemanof sulemanof commented Sep 24, 2020

Summary

Part of #46801

This PR contains next improvals:

  • lazy load MetricVisComponent & styles;

  • lazy load MarkdownVisComponent & styles;

  • simplify components code, improve types;

  • use common EuiLoadingChart as a fallback spinner in VisualizationContainer which acts as wrapper for all visualizations:

    vis_chart_spinner

  • fix regression - show common VisualizationNoResults message if visualization has no data to display:

    regression:

    metrics_no_result_regression

    fix:

    metrics_no_result_fix

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@sulemanof sulemanof added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v8.0.0 Feature:Markdown Markdown visualization feature Feature:MetricVis Metric visualization feature labels Sep 24, 2020
@sulemanof sulemanof marked this pull request as ready for review September 24, 2020 11:51
@sulemanof sulemanof requested a review from a team September 24, 2020 11:51
@sulemanof sulemanof requested review from a team as code owners September 24, 2020 11:51
@Dosant
Copy link
Contributor

Dosant commented Sep 24, 2020

Just FYI since this affected markdown: #78140
Not sure if this somehow affects your work

@sulemanof
Copy link
Contributor Author

Just FYI since this affected markdown: #78140
Not sure if this somehow affects your work

Had some conflicts on tests, but works well!
Thanks for notice!

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

SASS moves LGTM

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.

LGTM, couldn't find any regressions! 💯

@sulemanof
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

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

code LGTM

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@sulemanof sulemanof merged commit 3f6c0d6 into elastic:master Sep 28, 2020
@sulemanof sulemanof deleted the feat/lazy_load_visualizations branch September 28, 2020 09:43
sulemanof added a commit that referenced this pull request Sep 28, 2020
* Lazy load metrics vis

* Use common chart spinner

* Simplify markdown renderer

* Update tests

* Update types for metric vis

* Fix tests

* Fix merge conflict

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@sulemanof sulemanof added v7.10.0 and removed v7.11.0 labels Sep 28, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Sep 28, 2020
* master: (226 commits)
  [Enterprise Search] Added Logic for the Credentials View (elastic#77626)
  [CSM] Js errors (elastic#77919)
  Add the @kbn/apm-config-loader package (elastic#77855)
  [Security Solution] Refactor useSelector (elastic#75297)
  Implement tagcloud renderer (elastic#77910)
  [APM] Alerting: Add global option to create all alert types (elastic#78151)
  [Ingest pipelines] Upload indexed document to test a pipeline (elastic#77939)
  TypeScript cleanup in visualizations plugin (elastic#78428)
  Lazy load metric & mardown visualizations (elastic#78391)
  [Detections][EQL] EQL rule execution in detection engine (elastic#77419)
  Update tutorial-full-experience.asciidoc (elastic#75836)
  Update tutorial-define-index.asciidoc (elastic#75754)
  Add support for runtime field types to mappings editor. (elastic#77420)
  [Monitoring] Usage collection (elastic#75878)
  [Docs][Actions] Add docs for Jira and IBM Resilient (elastic#78316)
  [Security Solution][Resolver] Update @timestamp formatting (elastic#78166)
  [Security Solution] Fix app layout (elastic#76668)
  [Security Solution][Resolver] 2 new functions to DAL (elastic#78477)
  Adds new elasticsearch client to telemetry plugin (elastic#78046)
  skip flaky suite (elastic#78512) (elastic#78511) (elastic#78510) (elastic#78509) (elastic#78508) (elastic#78507) (elastic#78506) (elastic#78505) (elastic#78504) (elastic#78503) (elastic#78502) (elastic#78501) (elastic#78500)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Markdown Markdown visualization feature Feature:MetricVis Metric visualization feature Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants