Don't show agents which have been disabled in the Workspace agent dropdown
MR: feat: Disabled agents are not shown in the drop... (!137344 - merged)
Description
As a user, I don't want to see agents that are disabled so that I don't select an agent that can't provision my workspace.
At the moment, even if an agent is disabled it shows up in the dropdown when selecting agents when creating a new workspace. We need to fix that so that we don't show agents that have been disabled in the list. Additionally, we also want to add a validation that prevents this from happening when a workspace is created from the API.
Acceptance Criteria
-
Agents that have been disabled should not show up in the dropdown when creating a new workspace -
We should not be able to create a workspace from the API that is associated to a disabled agent
Edited by Shekhar Patnaik