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
I've been tinkering with previewing of terms and users in my spare time but hit some issues with rdf module which assumes that entities will always have an ID.
This will break Layout Builder previews too.
Proposed resolution
Make rdf module handle viewing user and term entities with no IDs
Remaining tasks
Review
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#42 | interdiff_40-42.txt | 1.23 KB | ravi.shankar |
#42 | 2314509-42.patch | 7.76 KB | ravi.shankar |
#40 | interdiff_38-40.txt | 538 bytes | ravi.shankar |
#40 | 2314509-40.patch | 7.74 KB | ravi.shankar |
#38 | interdiff_35-38.txt | 2.39 KB | akshay_d |
Comments
Comment #1
larowlanComment #3
jhedstromComment #4
larowlanComment #6
larowlanComment #7
larowlanComment #9
larowlanComment #10
larowlanComment #12
larowlanComment #13
larowlanBorked re-roll
Comment #14
larowlanover to @scor to review
Comment #15
scor CreditAttribution: scor commented@larowlan could you describe how to reproduce this bug? can it only be triggered programmatically, or is there a way to reproduce in the UI?
Comment #16
larowlanHi @scor, only programmatically, there's an example in the test. Basically if you call entity_view with an unsaved user or term
Comment #17
dawehnerMh, are we really sure we should log it and not just check if ($account->isNew()) before?
Comment #18
larowlanFixes #17
Comment #19
mgiffordPatch no longer applies.
Comment #28
larowlanThis issue still exists for Users, but not for terms anymore
Comment #31
karishmaamin CreditAttribution: karishmaamin at Specbee commentedRe-rolled patch against 9.4.x
Comment #32
Gauravvvv CreditAttribution: Gauravvvv at Srijan | A Material+ Company for Drupal India Association commentedRe-rolled patch #31, Attached interdiff for same.
Comment #35
ajaypratapsingh CreditAttribution: ajaypratapsingh at Srijan | A Material+ Company for Drupal India Association commentedJust rerolled patch #31 against drupal 9.4.x
Comment #36
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedFixed the custom command issue in patch #35.
Comment #38
akshay_dRerolled the patch and fixed the custom commands errors.
Please Review
Comment #40
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedTrying to fix failed tests of patch #38.
Comment #42
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedFixing failed tests of patch #40.
Comment #43
smustgrave CreditAttribution: smustgrave at Mobomo commented#28 claims this is still an issue so moving over to the new contrib module
RDF is moving out of core and into https://www.drupal.org/project/rdf moving there.
Comment #44
smustgrave CreditAttribution: smustgrave at Mobomo commented