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

Removing the lens feature, using visualize instead #48041

Merged
merged 7 commits into from
Oct 15, 2019

Conversation

kobelb
Copy link
Contributor

@kobelb kobelb commented Oct 11, 2019

Having a dedicated Lens feature breaks from the convention which we established with Timelion being considered part of the Visualize feature. Once Feature privileges besides all and read is complete, there will be support for "sub-feature privileges", so that end-users can grant access to a subset of Visualizations.

In the meantime, this removes the Lens feature and relies upon the Visualize feature. As such, we're no longer checking the lens ui capabilities, and instead using the visualize ui capabilities. I didn't move over the api or catalogue components of the privilege definitions for Lens, as those were unused. Also, the old Lens feature privileges used to grant all access to the search saved-objects, which I'm pretty sure was a mistake, so this has been removed also.

@kobelb kobelb requested a review from a team October 11, 2019 22:13
@kobelb kobelb requested a review from a team as a code owner October 11, 2019 22:13
@kobelb kobelb added release_note:skip Skip the PR/issue when compiling release notes v8.0.0 v7.5.0 labels Oct 11, 2019
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.

I totally expected this to be a bigger change, but if tests pass this LGTM!

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

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

Platform side looks good.

@kobelb kobelb requested a review from a team as a code owner October 15, 2019 15:41
@wylieconlon
Copy link
Contributor

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💔 Build Failed

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.

Still LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@@ -46,7 +46,7 @@ export const buildOSSFeatures = ({ savedObjectTypes, includeTimelion }: BuildOSS
}),
icon: 'visualizeApp',
navLinkId: 'kibana:visualize',
app: ['kibana'],
app: ['kibana', 'lens'],
Copy link
Member

Choose a reason for hiding this comment

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

Technically unrelated to your changeset, but should the dashboard feature privileges also grant read access to the lens saved object type, like we do for timelion-sheet today?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wylieconlon can Lens visualizations currently be "embedded" in Dashboards?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Even if Lens can be "embedded" in Dashboards, I'd prefer this separate bug be addressed in another PR.

Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

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

LGTM, with the understanding that the Lens team will address dashboard access in a followup PR

@kobelb kobelb merged commit 21841f6 into elastic:master Oct 15, 2019
@kobelb kobelb deleted the no-lens-feature branch October 15, 2019 19:03
kobelb added a commit to kobelb/kibana that referenced this pull request Oct 15, 2019
* Removing the lens feature, using visualize instead

* Updating /api/features test because lens isn't a feature anymore

* Updating capability from lens to visualize in test

* Fixing api integration test
kobelb added a commit that referenced this pull request Oct 15, 2019
* Removing the lens feature, using visualize instead

* Updating /api/features test because lens isn't a feature anymore

* Updating capability from lens to visualize in test

* Fixing api integration test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens release_note:skip Skip the PR/issue when compiling release notes v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants