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

[Visualize] Vis listing page breaks on unknown vis type #82018

Merged
merged 3 commits into from
Nov 2, 2020

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Oct 29, 2020

Summary

Closes #81881.

This PR closes two bugs:

  • When the visualize:enableLabs is disabled on advanced settings and the listing page has at least one Lens vis it doesn't load with the following error:

  • When a user changes the type of a vis from the saved objects management it also breaks.

I changed it in order to make the type optional. When there is an error on the vis item, the saved object has also a string field (string) so I depend on this to disable the link both in the title of the vis and on the edit icon.

Screenshot 2020-10-29 at 5 54 12 PM

@stratoula stratoula added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix v7.11 v8.0.0 labels Oct 29, 2020
@stratoula stratoula marked this pull request as ready for review October 30, 2020 07:30
@stratoula stratoula requested a review from a team October 30, 2020 07:30
@stratoula stratoula requested a review from a team as a code owner October 30, 2020 07:30
@stratoula stratoula added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Oct 30, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
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.

Tested with Lens vis and broken vis type with and without experimental visualization types - works as expected.

@timroes timroes added v7.11.0 and removed v7.11 labels Oct 30, 2020
@flash1293
Copy link
Contributor

@stratoula Could you backport this into 7.10.1 as well once it exists?

@stratoula
Copy link
Contributor Author

Sure @flash1293!

</EuiLink>
) : (
field
),
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I would render a string stating "Unknown Type" into the type column, to clarify what happened, together with a "warning" icon.

Might even consider adding a tooltip with more details.

Other than that looks good.

@lizozom
Copy link
Contributor

lizozom commented Oct 30, 2020

@stratoula IMO the tooltip should say something like Enable visualize:enableLabs in order to use this visualization.

@stratoula
Copy link
Contributor Author

@lizozom the setting doesn't solve the problem. The type is not correct so it can't be used either with it enabled or disabled.
Moreover we aren't always sure that the error has to do with the wrong type. It could be something else, so I am thinking to just display the error message with a warning icon as you proposed and nothing more.

@stratoula
Copy link
Contributor Author

@lizozom I updated it, below is a ss with the change 🙂
Screenshot 2020-10-30 at 5 38 12 PM

@stratoula
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
visualize 258.2KB 258.4KB +281.0B

page load bundle size

id before after diff
kibanaReact 131.5KB 131.5KB +32.0B

History

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

@stratoula stratoula merged commit 788328c into elastic:master Nov 2, 2020
stratoula added a commit to stratoula/kibana that referenced this pull request Nov 2, 2020
* [Visualize] Vis listing page breaks on unknown vis type

* Display a warning badge in case of an error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
stratoula added a commit that referenced this pull request Nov 2, 2020
)

* [Visualize] Vis listing page breaks on unknown vis type

* Display a warning badge in case of an error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Nov 2, 2020
* master:
  Add derivative function (elastic#81178)
  [Discover] Deangularize context_app.html, part 3 (elastic#81838)
  [Visualize] Vis listing page breaks on unknown vis type (elastic#82018)
  Rename `batchSize` parameter to `batch_size` to be consisten with the API namings guidelines. (elastic#82123)
  Minor edits in Single Metric Viewer (elastic#82159)
  [Actions] Fix type contract (elastic#82168)
  Upgrade EUI to v30.1.1 (elastic#81499)
  Skip failing ES snapshot test (elastic#82207)
  Skip ES snapshot failing suite (elastic#82206)
  [Alerting UI] Grouped list of alert types using producers in Types filter of Alerts tab (elastic#81876)
  [Maps] convert vector style component to typescript round 1 (elastic#81961)
  Fix link to upgrade assistant (elastic#82138)
  Rename "service overview" to "service inventory" (elastic#81933)
  adjust policy test to drop test for server addresses (elastic#82120)
  Cleanup/codeowners (elastic#82146)
  [DOCS] Updates add data content (elastic#81093)
  [DOCS] Remove index mgmt docs (elastic#82099)
  [Search] fix cancelation related memory leaks (elastic#81996)
phillipb added a commit to phillipb/kibana that referenced this pull request Nov 2, 2020
…e-details-overlay

* 'master' of github.com:elastic/kibana: (72 commits)
  [CCR] Update README.md on how to start 2 clusters for testing (elastic#81487)
  [APM] Scale transaction rate correctly (elastic#82155)
  Upgrade to hapi version 18 (elastic#80468)
  [Uptime] Remove custom handling of license enabling (elastic#82019)
  [Telemetry] Remove `from` and `to` timestamps from usage stats APIs (elastic#81579)
  Enable send to background in Vega (elastic#82229)
  Enable send to background in Timelion (elastic#82232)
  [Actions & Connectors] removes Connector flyouts after usage (elastic#82126)
  Add derivative function (elastic#81178)
  [Discover] Deangularize context_app.html, part 3 (elastic#81838)
  [Visualize] Vis listing page breaks on unknown vis type (elastic#82018)
  Rename `batchSize` parameter to `batch_size` to be consisten with the API namings guidelines. (elastic#82123)
  Minor edits in Single Metric Viewer (elastic#82159)
  [Actions] Fix type contract (elastic#82168)
  Upgrade EUI to v30.1.1 (elastic#81499)
  Skip failing ES snapshot test (elastic#82207)
  Skip ES snapshot failing suite (elastic#82206)
  [Alerting UI] Grouped list of alert types using producers in Types filter of Alerts tab (elastic#81876)
  [Maps] convert vector style component to typescript round 1 (elastic#81961)
  Fix link to upgrade assistant (elastic#82138)
  ...
stratoula added a commit to stratoula/kibana that referenced this pull request Nov 16, 2020
* [Visualize] Vis listing page breaks on unknown vis type

* Display a warning badge in case of an error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
stratoula added a commit that referenced this pull request Nov 16, 2020
)

* [Visualize] Vis listing page breaks on unknown vis type

* Display a warning badge in case of an error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.1 v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unknown visualization type breaks listing page
6 participants