Motivation

It would be nice if we were prompted to switch to a workspace when I try to create or edit content in live so that users don't need to be taught from scratch the process of doing so.

Steps to reproduce

  • Try to add a node and you should get an access denied.

Proposed resolution

Can we just redirect them to a workspace selector and give them a message why?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Tim Bozeman created an issue. See original summary.

tim bozeman’s picture

Status: Active » Needs review

s_leu made their first commit to this issue’s fork.

s_leu’s picture

Adding a patch that combines the changes in the MR here with the changes for #3322153: Ensure that the workflow state field is added to newly created entity types as applying separate patches won't work due to conflicting changes.

amateescu’s picture

Title: Streamline workspaces usage » Prompt users to activate a workspace in the content workflow instead of just denying access to some page
Assigned: tim bozeman » Unassigned
StatusFileSize
new18.06 KB

Implemented this feature using a route enhancer instead, because that gives us access to the entity bundle.

Also moved the whole thing to entity_workflow_content since that's the workflow which requires an active workspace for entity operations.

  • amateescu committed 7f9dbfe8 on 2.x
    Issue #3224495 by Tim Bozeman, s_leu, amateescu: Prompt users to...
amateescu’s picture

Status: Needs review » Fixed

Committed the patch above :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.