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

Move Lens saved object setup to Kibana platform #61157

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

timroes
Copy link
Contributor

@timroes timroes commented Mar 24, 2020

Summary

Move the Lens saved object registration from the legacy world to Kibana platform.

For QA: The only functional change this introduces is that Lens Saved Objects (in Management > Saved Objects) will now have an icon and can be clicked to view them in Lens.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@timroes timroes requested a review from flash1293 March 24, 2020 20:23
@timroes timroes changed the title Move lens saved object setup to Kibana platform Move Lens saved object setup to Kibana platform Mar 24, 2020
getTitle: (obj: { attributes: { title: string } }) => obj.attributes.title,
getInAppUrl: (obj: { id: string }) => ({
path: getEditPath(obj.id),
uiCapabilitiesPath: 'visualize.show',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ℹ️ We used before this move lens.show here, which was wrong, since there is no lens.show uiCapabilities. We decided that time to use the visualize uiCapability for Lens, it seemed just this place always returned the wrong capability.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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

@timroes timroes added Feature:Lens Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.8.0 v8.0.0 labels Mar 25, 2020
@elasticmachine
Copy link
Contributor

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

@timroes timroes requested a review from mbondyra March 25, 2020 07:57
@timroes timroes marked this pull request as ready for review March 25, 2020 07:57
@timroes timroes requested a review from a team March 25, 2020 07:57
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 and works, LGTM

Copy link
Contributor

@wylieconlon wylieconlon left a comment

Choose a reason for hiding this comment

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

Haven't tested, but this LGTM

@timroes timroes merged commit b8e3ccb into elastic:master Mar 25, 2020
@timroes timroes deleted the lens/saved-object-kp branch March 25, 2020 16:56
@wylieconlon wylieconlon mentioned this pull request Apr 7, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants