Modules can currently declare workspaces, but they also need to declare the repository to which they're mapped. It shouldn't be any of their business, as we've seen with UGC modules, when we want these workspaces to be shared for instance. A first fix was done with
MAGNOLIA-3064, but ultimately, we should reflect this in the module descriptors AND our code as well.
An updated module descriptor might look like:
(for the workflow module)
As of yet, it's undecided if we'll use the "repository" or "workspace" name. The latter is more accurate, but the former is more understandable for mere mortals.
Additionally, we'll need to check and remove public API methods which take both repository and workspace name strings, and use our repository-to-workspace mapping consistently.