Make it possible to actively fetch the status with api/geo_nodes/:id/status

Description

At the moment the Geo Admin page uses /admin/geo_nodes/status.json to fetch the active status of the nodes.

One could use api/geo_nodes/:id/status to fetch the status through the API, but this does not actively fetch the status, it just reads the last fetched status from the DB.

Proposal

Add an optional parameter (e.g. refresh=true) to actively fetch the status from the node.

This parameter would not work for api/geo_nodes/status to avoid fetching multiple node statuses simultaneously.

This will make /admin/geo_nodes/status.json obsolete. And because @kushalpandya is already working on a Vue rework of the Geo admin page, with the use of /api/geo_nodes it would be nice to properly use the API instead of the Rails controllers.

Links / references

cc @nick.thomas @stanhu

Edited Dec 21, 2017 by Toon Claes
Assignee Loading
Time tracking Loading