Skip to content

Move Lens saved object setup to Kibana platform#61157

Merged
timroes merged 1 commit intoelastic:masterfrom
timroes:lens/saved-object-kp
Mar 25, 2020
Merged

Move Lens saved object setup to Kibana platform#61157
timroes merged 1 commit intoelastic:masterfrom
timroes:lens/saved-object-kp

Conversation

@timroes
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.8.0 v8.0.0 labels Mar 25, 2020
@elasticmachine
Copy link
Copy Markdown
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
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.

Tested and works, LGTM

Copy link
Copy Markdown
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 Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.8.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants