- Issue created by @catch
- 🇬🇧United Kingdom AaronMcHale Edinburgh, Scotland
This is a really clever idea, and could really solve some interesting problems! I could see this being used to allow, for example, paragraphs on a node to all move with the node through the workflow.
One thing we need to be mindful of is the large number of sites using content moderation with existing complex workflows. So we need to be clear that not all workflows are simply draft/review/publish. For instance, I'm on a project right now where we have content moderation workflows with many stages and transitions, and some branching logic. For instance, we essentially have different "tracks" within a workflow that content can be on depending on other factors. The fact that it's easy to set the moderation state of a node in-code, just by calling
->set('moderation_state', '...')
really helps enable these more complex workflows.If we can continue to maintain the power and flexibility of content moderation, this could be very powerful stuff!
- 🇬🇧United Kingdom catch
The fact that it's easy to set the moderation state of a node in-code, just by calling ->set('moderation_state', '...') really helps enable these more complex workflows.
Hopefully this will stay exactly the same.
The current idea is that there is a primary entity for a content moderation workspace, e.g. when you edit or create a node, we create a workspace for that entity and then edits to other entities within that workspace are included, but the workflow status is still tracked on the node itself. When the workflow state moves to published, this publishes the workspace and the other downstream changes (media, path aliases, menu links, paragraphs etc.) are published alongside it. This way the current UX and data model would be preserved as closely as possible, e.g. we'd be adding extra data but not necessarily moving or removing what content_moderation already stores.
- 🇬🇧United Kingdom AaronMcHale Edinburgh, Scotland
Thanks for explaining that @catch, that does sound like a very cool idea then! I can definitely see the potential in this!