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:
Current Step
Total Steps
Step Description
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
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