-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[META][AppEx - AnalyticsXP] Audit use of savedObject.client #157062
Comments
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Pinging @elastic/kibana-presentation (Team:Presentation) |
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
We have identified a .clone() usage in Dashboard, which is still required to clone saved-searches generically. Will need a proposal for fix/work-around/solution/.. |
Noting here additional info regarding the clone usage in Dashboard. Problem:Currently when cloning a panel on Dashboard there are three processes which can be followed: The second option is a problem for serverless because it requires a generic usage of the saved objects client to clone an arbitrary type of saved object. This is also a UX problem because it can create cruft - many copies of the same saved object - in the visualize library. Additionally, most panel types are either by value only, like log stream or the ML embeddables, or by value / by reference like Lens, TSVB, Visualize, Maps etc. This means that option 2 is only used when cloning a saved search. Potential Solutions:
So far, the Presentation & Data Discovery teams have aligned around potential solution 3. |
|
Closing this because the problem outlined in this comment has been fixed by #164108 |
No code under
public/
should use the saved-objects client.ie. there should be no usage of
coreStart.savedObjects.client
If there is usage of the , and it cannot be replaced by onboarding on the content-management system (#157043) , please create a corresponding issue or PR for its removal.
The text was updated successfully, but these errors were encountered: