ministryofjustice/analytical-platform

๐Ÿž Information about current tool installed not always accurate

Opened this issue ยท 0 comments

Describe the bug.

The "Your Tools" page of the control panel displays a drop down of available tool versions to a user, with a label to indicate the currently installed tool. However this sometimes shows incorrect information, indicating a tool is installed when no tool is installed for example.

This can also create a situation where the tool cannot be installed, as the "deploy" button is disabled incorrectly. This occurs when only one tool is available, and it is incorrectly displayed as "installed"

To Reproduce

Difficult to reliably reproduce, but to try in local/dev, limit your user to a single version of a tool release (via the admin tool releases page), then visit "Your Tools".

Expected Behaviour

Information about the installed tool is accurate. This will also resolve the issues of a version being blocked for deployment.

Additional context

No response