- Issue created by @amateescu
- Status changed to Needs review
9 months ago 7:53pm 19 March 2024 - First commit to issue fork.
- Status changed to RTBC
9 months ago 2:20pm 20 March 2024 - πΊπΈUnited States smustgrave
Applied 1 nitpicky change for :void
1) Drupal\Tests\workspaces\Kernel\WorkspaceIntegrationTest::testWorkspaceAssociationDataIntegrity Failed asserting that '5' matches expected 6. /builds/issue/drupal-3432228/vendor/phpunit/phpunit/src/Framework/Constraint/Equality/IsEqual.php:94 /builds/issue/drupal-3432228/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php:414 /builds/issue/drupal-3432228/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 FAILURES! Tests: 20, Assertions: 1568, Failures: 1.
Shows the test coverage
Change make sense to me. Since this is a workspace critical will mark now.
- Status changed to Fixed
9 months ago 10:25am 25 March 2024 - π¬π§United Kingdom catch
Discussed this one with @amateescu in slack. There was an alternative option to reverse the order of entity creation - workspace-specific first, unpublished default revision - but this would have re-introduced the race condition we worked hard to eliminate in Drupal 7 contrib where there's a published default revision before the unpublished one, which can leak into the live site if it's busy enough.
Removing the cloning here is also a bit alarming, but I don't see another way, and the hook_module_implements_alter() ensures to the best extent that we can that it only happens after everything else has run.
Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.