[ILM] Refactor edit policy helpers #98031
Labels
Feature:ILM
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
technical debt
Improvement of the software architecture and operational architecture
The file
x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.helpers.tsx
currently consist of more than 400 lines. The amount of helper functions is very large which makes for poor maintenance:On the other hand, it's straightforward to use one single function to setup an edit policy test bed for client integration tests.
After a discussion with @jloleysens, these are suggestions to refactor the file:
The text was updated successfully, but these errors were encountered: