Open cjcenizal opened 3 years ago
As noted in https://github.com/elastic/kibana/pull/113822#discussion_r721925397, we should surface reindexing errors to the consumer of the batch reindex API that ships with Upgrade Assistant.
As part of this change, we can also do some minor refactoring, such as renaming mapAnyErrorToKibanaHttpResponse to handleReindexingError and expand its role to handle both Kibana and ES errors.
mapAnyErrorToKibanaHttpResponse
handleReindexingError
CC @sabarasaba
Pinging @elastic/kibana-stack-management (Team:Stack Management)
As noted in https://github.com/elastic/kibana/pull/113822#discussion_r721925397, we should surface reindexing errors to the consumer of the batch reindex API that ships with Upgrade Assistant.
As part of this change, we can also do some minor refactoring, such as renaming
mapAnyErrorToKibanaHttpResponse
tohandleReindexingError
and expand its role to handle both Kibana and ES errors.CC @sabarasaba