Open ElenaStoeva opened 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.
@elastic/elasticsearch
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
elasticsearch-specification
Pinging @elastic/kibana-management (Team:Kibana Management)
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