Move saved objects loader to dashboard plugin#124708
Conversation
24806b9 to
04782fb
Compare
13e2700 to
ce8d004
Compare
|
Pinging @elastic/kibana-core (Team:Core) |
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
💛 Build succeeded, but was flakyTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Any counts in public APIs
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: |
ThomThomson
left a comment
There was a problem hiding this comment.
Thanks for doing this @rudolf, we will absolutely be moving away from the Saved Objects Loader class soon - it is on our tech debt roadmap.
Code review only, but all the changes in this PR make sense - LGTM!
| } from 'kibana/public'; | ||
| import { SavedObject } from '../types'; | ||
| import { StringUtils } from './helpers/string_utils'; | ||
| import { SavedObject } from '../../../saved_objects/public'; |
There was a problem hiding this comment.
NIT: import type (even if the target is an interface)
|
The following labels were identified as gaps in your version labels and will be added automatically:
If any of these should not be on your pull request, please manually remove them. |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* Move SavedObjectLoader into the dashboard plugin * Remove old comment recommending savedobjectloader * Fix types (cherry picked from commit 00fb06c)
|
Removed Team:Presentation label to see if we can get it to sync to Jira |
* Move saved objects loader to dashboard plugin (#124708) * Move SavedObjectLoader into the dashboard plugin * Remove old comment recommending savedobjectloader * Fix types (cherry picked from commit 00fb06c) * Fix types Co-authored-by: Rudolf Meijering <rudolf.meijering@elastic.co> Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Summary
When creating the NP the Core team decided not to port src/legacy/ui/public/saved_objects/ due to concerns with the architecture, code quality and test coverage. In order to unblock teams this code was temporarily moved into a new saved_objects plugin #57452 We've since asked teams to remove dependencies on this plugin #46435
Now that the dashboard plugin is the only consumer of the SavedObjectsLoader I have moved this dependency into the dashboard plugin.
Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers