Closed as not planned
Description
The workspaces filter is complex, largely due to filtering on workspace status. We have two queries that need to apply this filter: GetWorkspaces
and GetWorkspaceCount
. Right now the filtering code is just copy-pasted between them. Consider using a view or other strategy to DRY up the queries.