Closed (fixed)
Project:
Drupal core
Version:
10.3.x-dev
Component:
workspaces.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Nov 2022 at 08:50 UTC
Updated:
29 Apr 2024 at 10:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vladimir_kriukov commentedComment #3
vladimir_kriukov commentedComment #4
antonnaviComment #5
amateescu commentedI agree with the solution, since the workspace merger behaves like the publisher and it's not creating new revisions when a workspace is merged into its parent. However, we need test coverage for this, somewhere in
\Drupal\Tests\workspaces\Functional\WorkspaceConcurrentEditingTest.Comment #8
amateescu commentedImproved the patch a bit and converted to a MR, still needs tests so leaving at NW for now.
Comment #9
amateescu commentedAdded test coverage and revamped the issue summary since this can no longer be reproduced via the workspace conflict constraint.
Comment #10
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #11
amateescu commentedComment #12
smustgrave commentedHiding patches for clarity
Test only feature was already ran
So change to the Merger looks good.
Comment #13
michelleMy issue, https://www.drupal.org/project/drupal/issues/3438769 was marked as a duplicate of this. However, this patch is not fixing the issue of the develop workspace not clearing. Is there something not working here, or is my issue not actually a duplicate?
Comment #14
amateescu commentedHm.. that's right, I thought #3438769: Sub workspace does not clear was about the value of the workspace metadata field, but it's actually about
WorkspaceAssociation::onPostPublish()not deleting the associations of sub-workspaces. I'll reopen it :)Comment #15
alexpottAdded a comment to the MR. It's a bit of a pain to address but this change makes a service that's injected unused.
Comment #16
amateescu commentedOops, I didn't realize we don't need that service anymore. Since the Merger class is not a service and it's also tagged @internal, I only removed the argument from its constructor, but I had to do the whole deprecation dance anyway for
WorkspaceOperationFactorybecause that's an actual service :/Also added a CR for it: https://www.drupal.org/node/3440755
Comment #17
smustgrave commentedWasn't fully aware of DeprecatedServicePropertyTrait neat!
Deprecation is all green. Know the stable ticket for workspace is RTBC but maybe this can get in at the same time.
Comment #18
quietone commentedI checked the change record and it is correct and easy to understand.
Comment #21
alexpottWhoops! Forgot to mark this fixed.
Comment #22
alexpott