Add attributes types in SavedObjects migration #64748
Labels
chore
Feature:Saved Objects
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
technical debt
Improvement of the software architecture and operational architecture
Projects
In #63943 we added generic types for
SavedObjectMigrationFn
input and output doc attributes. As these attributes were previously typed asany
, some explicit<any, any>
were added in existing plugins migrations as a temporary measure.Now that
SavedObjectMigrationFn
allows type checking, the existing migrations should leverage it to ensure that migrated docs are correctly typed.The initial PR introduced
<any, any>
changes in the following files:@elastic/kibana-app
src/plugins/vis_type_timeseries/server/saved_objects/tsvb_telemetry.ts
x-pack/plugins/graph/server/saved_objects/migrations.ts
x-pack/plugins/lens/server/migrations.ts
@elastic/kibana-presentation
src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts
src/plugins/dashboard/server/saved_objects/migrate_match_all_query.ts
@elastic/kibana-app-arch
src/plugins/visualizations/server/saved_objects/visualization_migrations.ts
src/plugins/data/server/saved_objects/index_pattern_migrations.ts
src/plugins/data/server/saved_objects/search_migrations.ts
@elastic/kibana-security
x-pack/plugins/spaces/server/saved_objects/migrations/migrate_6x.ts
The text was updated successfully, but these errors were encountered: