Initialize NodeStatus
with current network interface data by default
#23
Labels
breaking change
Changes to public functions that are not backwards compatible
refactoring
Non-breaking changes that improve maintainability or readability
Instead of calling
NetworkInterfaces.update_node_status
from theget_status
method of the storage/distributor file controller, we can add a pre-root-validator to theNodeStatus
model class that gets theNetworkInterface
instance and provides default values for the status object from that network interface. This would simplify theget_status
methods considerably and make theupdate_node_status
method obsolete.The text was updated successfully, but these errors were encountered: