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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

FreekVR’s picture

FileSize
2.24 KB
FreekVR’s picture

Status: Active » Needs review
djdevin’s picture

That 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.

FreekVR’s picture

FileSize
5.94 KB

Here'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

Status: Needs review » Needs work

The last submitted patch, 4: add_uuid_to-2397863-4.patch, failed testing.

FreekVR’s picture

Unfortunately 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

djdevin’s picture

No worries I will test it manually.

idebr’s picture

Status: Needs work » Needs review
FileSize
1.23 KB
5.21 KB

Status: Needs review » Needs work

The last submitted patch, 8: add_uuid_to-2397863-8.patch, failed testing.

davidraijmakers’s picture

FileSize
5.26 KB

For the latest dev version:

djdevin’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 10: add_uuid_to-2397863-9.patch, failed testing.

anastasiaphil’s picture

Patch for version 7.x-5.5