You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was tried to fix in this PR #2587.
This fix was tested on the dev environment. But in prod in some cases, this fix caused that the statics never load.
That's why the PR was reverted.
Searching deeper, I found the reason why the prop resultState in metrics.tsx causing several request calls.
The component Metrics is a child of the component wzVisualize, and the last one is sending his prop resultState.
The component wzVisaulize is used as directive by the template dashboard and this is sending the global variable resultState
This global variable is set by the controller kibana-discovery.ts through a chain of watchers and observers.
But the problem is that this handler is setting resultState as 'loading' then as 'ready' two times when the controller loads.
This happens because the state of the filters is set two times when FilterManager is called.
The methods from the class FireManager are merging the provided filters and if there are changes, they fire the update events. .
Description
The request esAlert is sent several times in the Dashboard.
Screenshots
Additional context
It occurs because the request call is in the componentDidUpdate of the component class metrics
The text was updated successfully, but these errors were encountered: