openrca / orca-ui

Web UI for OpenRCA
https://openrca.io
Apache License 2.0
33 stars 4 forks source link

Attribute transform large graph error #97

Closed k-jano closed 4 years ago

k-jano commented 4 years ago

This PR closes #91, by function order redefinition in first graph generating in orca-ui.

The problem was connected with scaleGraph() function, which we triggered 2 seconds after page load. Sometimes it occurred that there wasn't time enough to get response from backend server and apply it to graph definition. This PR makes, that timeout starts after getting a response.

Moreover if there is a situation that scaleGraph() function was triggered and no nodes were detected in the graph, transform operation isn't executed.