Refactor TransportIndicesAliasesAction action loop for ease of understanding #107017
Labels
:Data Management/Indices APIs
APIs to create and manage indices and templates
>enhancement
Team:Data Management
Meta label for data/management team
Description
While working on #106514 , it became clear that the main method of TransportIndicesAliasesAction has grown unwieldy. In particular, the large loop over request actions with multiple
continue
statements is difficult to understand.A possible refactoring would involve moving the sections of the loop that focus on concrete indices and data streams into their own functions. Then rather than continuing from the data streams portion of the loop (here), the data stream function would call into the concrete index function.
The text was updated successfully, but these errors were encountered: