[Security Solution] Use search strategy showError
instead of addError
#125263
Labels
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Team:Threat Hunting
Security Solution Threat Hunting Team
technical debt
Improvement of the software architecture and operational architecture
In security solution, we have our own error toaster component
addError
. When we made the switch from GraphQL to Search Strategy, we were unaware of the Search Strategydata.search.showError
method and continued usingaddError
. TheshowError
includes special error handling for specific cases. For example, take a look at the same error passed toaddError
, and then passed toshowError
:We should replace every
addError
handling an error for search strategy (data.search.search
) with thedata.search.showError
method.I have already made the change in timeline, which is the gifs above: #125178
The text was updated successfully, but these errors were encountered: