sofie-core
sofie-core copied to clipboard
Ensure peripheralDevice subdevice removal when requested
This PR has been opened by SuperFly.tv on behalf of EVS Broadcast Equipment.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature
What is the current behaviour? (You can also link to an open issue here)
When changing the blueprint configuration through the API peripheralDevice subdevices can be added and removed. Currently the removal leaves the subdevice in place with a status of 'BAD' and with the message 'Uninitialized'.
What is the new behaviour (if this is a feature change)?
This change forces the subdevice to be removed in this specific case. The change is intended as a step towards allowing a Sofie instance to be completely reconfigured via API between productions.
Other information:
Status
- [x] PR is ready to be reviewed.
- [x] Relevant unit tests have been checked.
- [x] The functionality has been tested by the PR author
Affected Areas
- This PR affects mos-gateway and playout-gateway subdevices.