overmindtech / sdp

Protobuf based protocol for describing the state of a system
Other
4 stars 1 forks source link

Extract risks status into separate endpoint #181

Closed dylanratcliffe closed 7 months ago

dylanratcliffe commented 7 months ago

Since we are planning to add a lot more detail to the risk calculation status, we will need an endpoint that we can poll. Currently the risks come back as part of ChangeMetadata, we should move this to its own endpoint that can be polled.

When risk calculation is in progress we will return:

Which can then be rendered directly in the UI or CLI. These will be flexible rather than hardcoding all the possible steps in an enum like we do with change status