[alerting event log] change ES access functions to use callCluster types #55644
Labels
Feature:EventLog
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
technical debt
Improvement of the software architecture and operational architecture
Currently all the ES calls made by event log are done via a single function:
kibana/x-pack/plugins/event_log/server/es/context.ts
Lines 76 to 89 in 31c2a89
This function is largely not needed in this form, it was useful during initial development to debug the calls to ES, but we can use debug logging where needed, instead.
The originating request for this came from a PR comment indicating we weren't making use of the existing callCluster type signatures. So, we'll get that back if we just start calling it directly.
Given the number of calls we are likely to have (few), we could also just write wrappers for the ones that we need ...
The text was updated successfully, but these errors were encountered: