Migrate es-archiver documents data from ES to SO format and provide associated tooling #56727
Labels
Feature:New Platform
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Now that SavedObjects types can be registered from NP, the current implementation of the
es-archiver
has no way to be aware of all the registered SO types, and therefor can no longer instantiate aKibanaMigrator
on it's own to perform the migration of it's documents after aload
action.In #55860, we decided to implements a 'temporary'
/migrate
savedobject endpoint to replace the migration that was done insrc/es_archiver/lib/indices/kibana_index.ts
.The consensus on the long term solution would be to keep the
archiver
data up to date and convert it to saved object format to avoid using raw ES apis, and load them using the SO endpoints (create
) instead.Do achieve this, we need to:
document
data used by the es-archiver (example:test/functional/fixtures/es_archiver
) from ES raw format to SO formatload
action to properly handle the new format, and use thekbnClient.savedObjects
to load the SO into elastic.The text was updated successfully, but these errors were encountered: