Needs work
Project:
Entity Reference Revisions
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Aug 2016 at 00:56 UTC
Updated:
22 Aug 2016 at 00:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
acbramley commentedThis is as far as I've got today on this. One thing that has me a bit confused is to test this I had to add the revision_uuid key to an ERR field (I'm using paragraphs). When I initially added it, I was getting strange results with the EFQ in the RevisionUuidResolver with the where condition being on the data table rather than the revision table.
This led to nothing ever being returned because the data table was always ahead of the revision table so the revision_uuids would never match. Changing the revision_uuid to "revisionable" fixed this after I tracked down the problem but not only does that not feel right, I think it's now causing issues when importing the paragraph entities since a new revision_uuid is generated on import instead of using the one that was exported.
Comment #3
acbramley commentedUnit tests added for the resolver
Comment #4
acbramley commentedQuick update with a simpler normalizer.
Comment #5
johnchqueLet's see if this breaks tests then. :)
Comment #7
acbramley commentedIt will fail because the normalizer calls getUuidRevision which requires the patch from #1812202: Add UUID support for entity revisions however I did find an issue with the namespace in my new test which I've fixed.