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

Support bulk sharing of saved objects #133951

Open
jportner opened this issue Jun 8, 2022 · 2 comments
Open

Support bulk sharing of saved objects #133951

jportner opened this issue Jun 8, 2022 · 2 comments
Labels
Feature:Security/Sharing Saved Objects Platform Security - Sharing Saved Objects feature needs design Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@jportner
Copy link
Contributor

jportner commented Jun 8, 2022

As of this writing, data views and ML jobs are the only shareable saved object types in Kibana. In the future, more saved object types will become shareable (#128907) and some consumers want the capability to bulk-share saved objects.

The reusable "Share to space" flyout currently looks like this:

image

This flyout is focused on a single object, though the action of sharing/unsharing will also transparently affect any "related objects" (e.g., the entire outbound reference graph).

The server-side API already supports bulk-sharing objects, but there isn't currently a good way to represent this in the UI. Some issues:

  1. Obviously the UI currently only displays the current object's title; that would have to be changed to represent that multiple objects are being changed.
  2. The list of spaces shows which are already selected for the current object, and it allows the user to select new ones or deselect existing ones (to "share" or "unshare" the object). However, if multiple objects are being shared, it's likely that different objects will have a different set of existing spaces that they are shared to -- this is no longer a binary display, we would need some sort of "indeterminate" checked state to reflect that some of the objects are shared to a space already, but not all of them.
    @MichaelMarcialis and I suggested adding this functionality to EuiSelectable ([EuiSelectable] Add support for Indeterminate values eui#4668) but it was rejected. If we were to implement this, we would have to get rid of our usage of EuiSelectable and replace it with something custom.
@jportner jportner added Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! Feature:Security/Sharing Saved Objects Platform Security - Sharing Saved Objects feature labels Jun 8, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@legrego
Copy link
Member

legrego commented Jun 9, 2022

Related to #52098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Security/Sharing Saved Objects Platform Security - Sharing Saved Objects feature needs design Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

No branches or pull requests

3 participants