Skip to content

MCCS-842 - Add assigned resources to subarray

Ben Whitmore requested to merge mccs-842 into main

The AssignedResources attribute in Subarray is expected to return a formatted json string (see https://confluence.skatelescope.org/display/SWSI/Configuration+Schemas#ConfigurationSchemas-TMC(Low)%E2%86%92MCCSController). This tickets adds it into Subarray.

The Subarray method calls the component manager's assigned_resources_dict to get a dictionary of resource types and fqdns/channel numbers currently assigned. It then converts these to IDs and returns the json expected.

Whilst going through this task I noticed there were still methods for conducting a partial release. This hasn't been supported since wholesale resource management changes in MCCS-400, MCCS-403, MCCS-405. Therefore I removed the methods and a couple of places where these still existed in the subarray tests.

Edited by Ben Whitmore

Merge request reports