- 🇺🇸United States adamzimmermann
Assumption: Most Drupal sites are uploading files using media entities, and media entities throw the error noted above when trying to edit them in the non-default workspace. This makes the workspaces module unusable (with media entities) as someone trying to implement it on a new site build right now.
I don't see any recent activity on this issue and the last patch seems to have issues from what others are reporting.
Is the workspaces module simply not being used on production sites yet, or how are others getting around this?
Do we need to alter media entities like they have done for files in 🐛 Cannot create entity with image in a workspace Fixed ? Are there known side-effects to this that make this not a viable solution?
Any insight is much appreciated!
- 🇺🇸United States adamzimmermann
For anyone else having this issue, the Workspaces Extra module → seems to help solve this and many other issues. It feels weird to need a contrib module for core functionality to work though.
- First commit to issue fork.
- 🇷🇴Romania amateescu
@adamzimmermann
It feels weird to need a contrib module for core functionality to work though.
That's because core moves at a slower pace, and production sites needed a lot of various fixes for Workspaces that were lingering for years in the core queue for various reasons. Workspaces Extra had to incorporate all these little fixes to prevent developers from using a huge list of patches into their projects.
Opened a MR with a fix and test coverage for this issue.
- 🇺🇸United States smustgrave
Thanks summary reads well
I was able to replicate following the steps and the MR does appear to address the problem
Test coverage seems to be there too.LGTM
- 🇬🇧United Kingdom catch
Looks good. Committed/pushed to 11.x, 11.1.x and 10.5.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.