Voting starts in March for the Drupal Association Board election.
Currently with Drupal 8 a UUID is useless. It maybe universally unique, but it doesn't really identify anything on it's own.
In Multiversion all of the indexes are grouped by workspace, which is important for how Multiversion uses these indexes. If we put indexes into core before workspaces go into core we will need to find a way for contrib modules like Multiversion to alter these indexes.
- Create an interface for all indexes
- Create a base class for all indexes
- Create an index of UUIDs with their entity type, entity id and revision id.
This is already implemented in Multiversion module, so mostly just needs porting over. However Multiversion introduces workspaces which would need to be removed from the uuid index code in a way that still allows Multiversion to add them.
- entity.index.uuid service
- getters and setters in service
- hook_install to add all existing entities to index
- hook_entity_insert to add new entities to index
How the indexes in Multiversion are used
The main use case is the RELAXed Web Services module which implements the CouchDB API (http://docs.couchdb.org/en/stable/http-api.html) this API focuses 100% on UUIDs, so we need a way to know when GETting or POSTing a URI which entity that relates to without looping through every entity type.
Other use cases
- Wouldn't it be cool if we didn't need the entity type in the URI, and out UUIDs were universally identifiable?
- Wouldn't it be cool if menu links could link to a UUID and we can look up what entity type that relates to?