elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.12k forks source link

[ILM] Replace plugin-defined policy types with ES types #188462

Open ElenaStoeva opened 1 month ago

ElenaStoeva commented 1 month ago

Currently, we define our own types for the serialized ILM policy parameters in https://github.com/elastic/kibana/blob/9d43b39f47433f4f635105872886f77e912398e7/x-pack/plugins/index_lifecycle_management/common/types/policies.ts. It would be better to leverage ES types from @elastic/elasticsearch rather than maintaining our own manual definition.

Prerequisite: Some of the Es types are not added to the elasticsearch-specification repo yet. There is an open issue for them to be added - https://github.com/elastic/elasticsearch-specification/issues/2727. Instructions for contributing to this repo: https://github.com/elastic/elasticsearch-specification/blob/main/docs/add-new-api.md

elasticmachine commented 1 month ago

Pinging @elastic/kibana-management (Team:Kibana Management)