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 |
---|---|---|---|
#15 | interdiff-2905333-13-15.txt | 4.85 KB | chr.fritsch |
#15 | pinterest_port_to_the-2905333-15.patch | 18.18 KB | chr.fritsch |
| |||
#13 | pinterest_port_to_the-2905333-13.patch | 20.73 KB | gg4 |
| |||
#10 | pinterest_port_to_the-2905333-10.patch | 20.75 KB | gg4 |
#7 | interdiff-2905333-3-7.txt | 672 bytes | chr.fritsch |
Comments
Comment #2
chr.fritschComment #3
chr.fritschHere comes the first patch
Comment #5
gg4 CreditAttribution: gg4 commented@chr.fritsch Thanks! I will review and cut a 8.x-2.x early next week.
Comment #6
gg4 CreditAttribution: gg4 commentedWhy is composer.json being removed?
Label seems incorrect.
I think we might want to run this with the rest of the tests in the media_entity group.
Comment #7
chr.fritsch1. There is no need for it. d.o. auto generates one out of the info.yml
2. Fixed
3. Changed to media. I don't have any strong opinions on that
Comment #9
MixologicThis is an issue with drupalci where it doesnt handle deleting a composer.json properly. See #2868739: deleting composer.json should not use ancillary directory
My suggestion is either to leave it in place (it doesnt actually need to be removed, composer facade handles its existence), or, remove it in a separate, isolated patch.
Comment #10
gg4 CreditAttribution: gg4 commentedComment #11
gg4 CreditAttribution: gg4 commentedComment #13
gg4 CreditAttribution: gg4 commentedPatch attached based on #7 with
composer.json
kept intact.Comment #14
phenaproximaThis patch looks fantastic. I found a few things you might consider changing before committing this, but nothing serious.
User is a required module and is always installed, so no need to check if it exists :)
This seems a bit presumptuous, no?
I'm not sure you need this function. I could be wrong, but I'm pretty sure that core's media_requirements() covers all of this.
I'm pretty sure providedFields() is now getMetadataAttributes(), so I think this TODO can be removed :)
Again, I could be wrong but I believe that NULL is the value getMetadata() should return if it runs into trouble.
I think all of these return FALSEs should be NULL.
All media sources *require* a configured source field, so I'm not sure this isset() check is actually necessary.
Nit: You could do $this->getSourceFieldDefinition()->getName() here.
Comment #15
chr.fritschFixed all the nits
Comment #16
phenaproximaLooks good to me. Thanks, @chr.fritsch!
Comment #18
gg4 CreditAttribution: gg4 commentedThanks @chr.fritsch and @phenaproxima. Much appreciated.
Also, since you both have spent some time with this code, any chance you could RBTC #2841662: [D8] Media entity Pinterest so we can get security coverage on this module?