gravitl / netmaker-ui

Other
66 stars 30 forks source link

fix(GRA-1377): fix infinite api calls for unavailable metrics #287

Closed Aceix closed 1 year ago

Aceix commented 1 year ago

TESTING STEPS:

  1. Open browser devtools and switch to the Networks tab
  2. Go to metrics page in UI, select a network
  3. Check that metrics are not polled many times, even when there are no metrics
  4. Click a node (if metrics are avalable) and check that there are not many n/w calls
  5. Check same for external clients metrics

server to test with (test with other servers too): https://dashboard.nm.64-227-178-89.nip.io/ check story for server cred: https://toil.kitemaker.co/cQARgD-Gravitl/Nk7Fgo-Main_Board/items/1377