skyrings / kitoon

Web interface for SkyRing
Apache License 2.0
6 stars 10 forks source link

Polling for unmanaged_nodes #123

Open debloper opened 8 years ago

debloper commented 8 years ago

For some issues in request-tracking-svc.ts:83 (to begin with), this request never times out and keeps recurring.

http://0.0.0.0:8080/api/v1/unmanaged_nodes        [HTTP/1.1 404 Not Found 3ms]
no element found                                           unmanaged_nodes:1:1
"Refreshing the requests in the store"                         app.js:28155:17

On the surface this looks like a polling(-like) approach, and shouldn't ideally happen in event model. When there are unmanaged node(s), there should be event triggering to handle the situation, instead of looking for it constantly.