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.
Adding a UUID to this entity would allow for importing/exporting this entity across different environments - this already works for questions, pages and quizzes since they're nodes, but sadly not for the entity that bridges them.
Comment | File | Size | Author |
---|---|---|---|
#13 | add_uuid_to-2397863-13.patch | 5.33 KB | anastasiaphil |
#10 | add_uuid_to-2397863-9.patch | 5.26 KB | davidraijmakers |
#8 | add_uuid_to-2397863-8.patch | 5.21 KB | idebr |
#8 | interdiff-8-4.txt | 1.23 KB | idebr |
#4 | add_uuid_to-2397863-4.patch | 5.94 KB | FreekVR |
Comments
Comment #1
FreekVR CreditAttribution: FreekVR commentedComment #2
FreekVR CreditAttribution: FreekVR commentedComment #3
djdevinThat update hook won't run unless we have UUID enabled, and it won't run ever again.
Should we just require UUID module? It looks like that code might also require https://www.drupal.org/project/entity_uuid
This also needs some tests to check if UUIDs get saved properly.
Comment #4
FreekVR CreditAttribution: FreekVR commentedHere's an improved patch, with fixes for the previous one:
- Adds two tests to see if a quiz and quiz_question_relationship entity have a UUID set
- Adds a dependency to uuid
- Adds the new UUID fields in hook_schema()
Not sure why entity_uuid exists, because uuid in itself works fine:
https://www.drupal.org/node/2236497
https://www.drupal.org/node/2387671
Comment #6
FreekVR CreditAttribution: FreekVR commentedUnfortunately the tests are failing due to the newly added dependency to uuid, which is not being automatically enabled:
Re. https://www.drupal.org/node/1844686
Comment #7
djdevinNo worries I will test it manually.
Comment #8
idebr CreditAttribution: idebr commentedReroll after #2414617: quiz admins should be able to view all feedback was committed.
Comment #10
davidraijmakers CreditAttribution: davidraijmakers commentedFor the latest dev version:
Comment #11
djdevinComment #13
anastasiaphil CreditAttribution: anastasiaphil at iO commentedPatch for version 7.x-5.5