-
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
Migrate saved object service #33587
Comments
Pinging @elastic/kibana-platform |
cc @mikecote |
I've re-arranged the order of the tasks. We should be able to complete client-side SavedObjects/SimpleSavedObject which could help unblock some client-side plugins. |
Can you clarify why? I would expect the HTTP endpoints to be blocked, but I'm not sure why the saved object service itself would be blocked. |
Right, we can refactor the endpoints into the new shape required by the new platform, but we cannot move the endpoint registration to the new platform's HttpService yet because those endpoints need authorization. |
What about a 3rd option where we add migration support to NP plugins and copy all the existing migrations over? This would be a breaking change for whichever version that is released in, but it seems like it would eliminate some work that would just be thrown away later anyways. |
Some more legacy saved objects code came up today and I don't see it captured in the plan above so I wanted to flag it. In the kibana plugin we have two pieces that need to be migrated to the New Platform:
It seems to me that this code should be moved into a separate NP plugin ( We may also want to consider moving parts of the API into the first-class Core SavedObjects API & Client if we think it may be useful. Specifically, I think the relationships endpoint and the scrolling / export endpoints may be useful to developers. In terms of just getting this code migrated to the New Platform, we still need to decide who will get this code to be NP-ready. The App team is working on shimming the frontend of the kibana plugin, and this will need to be done for this UI as well. The root of this UI is still heavily in Angular, however much of the newer development is in React. |
Closing as we've moved all of Saved Objects to core. There are some enhancement tasks left in the issue description, but these will be separately prioritized. |
The saved object service should be migrated to the new platform core and injected into the legacy world. New Core API's are denoted with ⭐️
7.3
7.4
type
required [Core] Make type option required for SavedObjects.find #422367.5
7.x
SavedObjectsManagementTypeDefinition
for each of their Saved Object types.migrations.
log.warning()
->log.warn()
inside existing migrations.SavedObjectsSchemaTypeDefinition
for each of their Saved Object types.bulkGet
which return results and errors in a single array.err.res.status
.showAutoCreateIndexErrorPage
ui/public/error_auto_create_index/error_auto_create_index
to NPsortOrder
in the HTTP API and public SavedObjectsClient8.x
being saved. No legacy plugins are using this functionality, which means we
have an opportunity to rethink this before moving to Core.
.kibana
index to the last known good.kibana_n
index and renaming the half-migrated.kibana_n+1
index to indicate failure (needs investigation).The text was updated successfully, but these errors were encountered: