mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Clarify no plans to remove legacy migrations at the moment (#201970)
## Summary We've had some questions around legacy migrations that are flagged as deprecated in the type. This updates the typescript doc comment to hopefully clarify that.
This commit is contained in:
parent
0544f35355
commit
80e49111bd
1 changed files with 7 additions and 4 deletions
|
@ -75,8 +75,11 @@ export interface SavedObjectsType<Attributes = any> {
|
|||
*/
|
||||
mappings: SavedObjectsTypeMappingDefinition;
|
||||
/**
|
||||
* An optional map of {@link SavedObjectMigrationFn | migrations} or a function returning a map of {@link SavedObjectMigrationFn | migrations} to be used to migrate the type.
|
||||
* @deprecated Use {@link SavedObjectsType.modelVersions | modelVersions} instead.
|
||||
* An optional map of {@link SavedObjectMigrationFn | migrations} or a function returning a map of
|
||||
* {@link SavedObjectMigrationFn | migrations} to be used to migrate the type.
|
||||
*
|
||||
* @deprecated Use {@link SavedObjectsType.modelVersions | modelVersions} for all future migrations instead. We have no plans
|
||||
* to remove legacy migrations at this point, so there's no need to migrate existing migrations to model versions.
|
||||
*/
|
||||
migrations?: SavedObjectMigrationMap | (() => SavedObjectMigrationMap);
|
||||
/**
|
||||
|
@ -89,8 +92,8 @@ export interface SavedObjectsType<Attributes = any> {
|
|||
*/
|
||||
schemas?: SavedObjectsValidationMap | (() => SavedObjectsValidationMap);
|
||||
/**
|
||||
* If defined, objects of this type will be converted to a 'multiple' or 'multiple-isolated' namespace type when migrating to this
|
||||
* version.
|
||||
* If defined, objects of this type will be converted to a 'multiple' or 'multiple-isolated' namespace type when migrating to
|
||||
* this version.
|
||||
*
|
||||
* Requirements:
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue