Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#17 | interdiff.txt | 802 bytes | Sam152 |
#17 | 2859455-17.patch | 1.71 KB | Sam152 |
#12 | 2859455-12.patch | 2.5 KB | vijaycs85 |
#3 | 2859455-remove-todos-3.patch | 3.19 KB | Sam152 |
Comments
Comment #2
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #3
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedHere is an initial scan of the things I think are candidates to remove.
Sounds like something that would get grepped for and fixed if this was ever made a thing. Don't think this is the right place to track this.
If this ever got cleaned up, the tests would fail.
Why? I don't see a reason to.
I don't know what this means or if it makes any sense in the context.
Comment #5
timmillwoodI think those 4 candidates for removal look good so far.
Comment #6
dawehnerDid you checked this one?
This one feels like worth to investigate in a bit.
Comment #7
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedMy gut feeling is the views integration and test is going to be fixed by #2819477: Views integration incorrectly joins content_moderation_state entities with matching IDs, but different entity types.. The author was probably correct in saying there was something funky going on, because it was indeed broken. I just don't really understand what the comment is saying, hence the (possibly wrong?) assumption it's going to be fine after that issue gets in.
Comment #8
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedI've looked up the source of the comment, it was authored by @timmillwood in the original issue to bring CM to core. Having thought about it a bit, I think it's referring to the fact that the ContentModerationState entities created to track the moderation state don't mirror the default-ness of the entity revision they are attached to. The logic that neglects this is in \Drupal\content_moderation\EntityOperations::updateOrCreateFromEntity, but I think it's by design.
Comment #9
timmillwoodI don't remember writing that @todo, and the views integration is the most confusing part of CM for me, so not really sure what it means, but #8 sounds right.
Comment #10
vijaycs85Looks good. Let's clean them up.
Comment #12
vijaycs85Re-rolled and seems we lost one of the todo in route provider already.
Comment #13
timmillwoodI guess this can go back to RTBC
Comment #14
Wim Leers#6++
AFAICT that comment actually is referring to
which it expected to be
Comment #15
larowlanfor #14 and #6
Comment #16
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedIt believe it's specifically calling out the fact that the default-ness of content revisions isn't mirrored by the ContentModerationState entity:
It's come up as a point of confusion in other issues too, so maybe it should be documented in an issue somewhere, so it can be referred to.
In any case, we can remove it from the patch, I'm hoping to remove the whole relationship in #2894479: Deprecate the Views relationship from moderated content to the "content_moderation_state" entity anyway, so it might be a non issue.
Comment #17
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #19
timmillwoodLets get this done.
Comment #23
xjmEdit: Looks like the crediting fix isn't all-the-way fixed yet.