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.
Problem/Motivation
Follow-up to #2248983: Define the revision metadata base fields in the entity annotation in order for the storage to create them only in the revision table and #2808335: Changed time not updated when only non-translatable fields are changed on a translated entity.
We had to hard-code revision metadata fields in the original bug fix, but now they're in the entity annotation and there's a generic method to retrieve them, can use that instead.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff.txt | 1.07 KB | amateescu |
#11 | 2855315-11.patch | 2.31 KB | amateescu |
#9 | interdiff-2-9.txt | 536 bytes | hchonov |
#9 | 2855315-9.patch | 1.24 KB | hchonov |
#2 | 2855315.patch | 1.21 KB | amateescu |
Comments
Comment #2
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedCross-posted with @catch in #2248983-257: Define the revision metadata base fields in the entity annotation in order for the storage to create them only in the revision table, here's the interdiff from that comment :)
Comment #3
hchonovNot really necessary :).
But this should be fine. I also think we've covered all the other places in the other patch so this should be the only left change, right?
Comment #4
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedI wanted to keep the keys of that array clean, just in case someone thinks they can be used for something. And yes, I think we're all good here :)
Comment #5
hchonovThank you!
Comment #7
hchonovIt looks like we've got a bug in the revision metadata issue :(
Comment #8
hchonovI am currently looking into the problem.
Comment #9
hchonov;)
Comment #10
hchonovJust to mention - it wasn't a bug in the revision metadata issue, but in the initial patch, as the way we were adding the revision metadata fields wasn't correct and we skipped always the first two, so instead of + we have to use array_merge and then everything is working as excepted.
Comment #11
amateescu CreditAttribution: amateescu for Pfizer, Inc. commented#10 is right, sorry about that :)
I propose to also fix some minor follow-up stuff in this issue.
Comment #12
jibranLet's fix it then.
Comment #14
catchCommitted/pushed to 8.4.x, thanks!