-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Conversation
There was a problem hiding this 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!
💔 Build Failed |
💔 Build Failed |
There was a problem hiding this 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.
@elasticmachine merge upstream |
💔 Build Failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM
💚 Build Succeeded |
@@ -46,7 +46,7 @@ export const buildOSSFeatures = ({ savedObjectTypes, includeTimelion }: BuildOSS | |||
}), | |||
icon: 'visualizeApp', | |||
navLinkId: 'kibana:visualize', | |||
app: ['kibana'], | |||
app: ['kibana', 'lens'], |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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
* 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
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
andread
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.