When a published entity is added in a non-default workspace, we actually need to create two revisions:

- an unpublished one so that the new entity appears in the default workspace as the default revision
- a new revision of it which is only published in its workspace

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amateescu created an issue. See original summary.

amateescu’s picture

Status: Active » Needs review
FileSize
7.74 KB

Here's a patch lifted from #2925140: Add complete test coverage for creating and deploying content across workspaces. It also does a bit of unrelated cleanup but I was too lazy to split it out even more.

  • amateescu committed 93dfcec on 8.x-2.x
    Issue #2927171 by amateescu: Fix the way we handle the addition of...
amateescu’s picture

Status: Needs review » Fixed

All this new logic is already tested in #2925140: Add complete test coverage for creating and deploying content across workspaces so committed and pushed to 8.x-2.x!

Status: Fixed » Closed (fixed)

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