-
Notifications
You must be signed in to change notification settings - Fork 918
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
[Workspace] support workspace in saved objects client #6130
Comments
Plugins still need to be updated to pass workspace id when calling the server side saved object client directly, right? |
For option 1, no because the workspace id will be passed inside request context and be consumed by saved objetcs client automatically by a saved objects client wrapper in workspace plugin. |
I c, nice catch! |
Is your feature request related to a problem? Please describe.
We are introducing a new concept
workspace
to manage saved objects, and for now in OpenSearch Dashboard, there are two saved objects clients(browser/public side and server side) that plugins can use to perform CRUD operations on saved objects. And for now there exists two flows to use the clients.And as
workspace
will be used to separate saved objects within specific workspace, CRUD operations on saved objects need to tell the client which workspace it sits.There are cases that plugins use server side saved object client directly, in such cases, it won't know the current workspace if we only support current workspace in public side.
Describe the solution you'd like
Support workspace in saved objects client in server side.
We can see that no matter which approach plugins use to manage their objects, eventually it goes to saved objects client in server side as this is the only entry that can send request to .kibana index to fetch the data. So changes are only required in saved objects client in server side.
Describe alternatives you've considered
Support workspace in code of plugins and saved objects client on public side
Requires requires numerous changes in plugins and not elegant.
Here is a list of places that use directly the saved object client in server side.
dashboards-maps
dashboards-observability
OpenSearch-Dashboards/src/plugins/vis_type_timeseries
OpenSearch-Dashboards/src/plugins/share
OpenSearch-Dashboards/src/plugins/telemetry
OpenSearch-Dashboards/src/plugins/vis_augmenter
OpenSearch-Dashboards/src/plugins/data/
// may not an issue, it read/update with id
OpenSearch-Dashboards/src/core/server/ui_settings/ui_settings_client.ts
Much more maintenance effort in the future.
Additional context
#4944
The text was updated successfully, but these errors were encountered: