amateescu / revision_tree

Sandbox for Drupal's revision tree and related work
GNU General Public License v2.0
0 stars 0 forks source link

Conflict resolution #4

Closed chindris closed 5 years ago

chindris commented 5 years ago

Here is how the conflict resolution introduced by this PR should work:

chindris commented 5 years ago

Hi @amateescu and @pmelab ! I have a couple of questions for this PR:

pmelab commented 5 years ago

Question 1: The merged revision of a merge a to b should have the revision b as parent and a as the merge parent, no matter which revision been copied to create the merge revision.

Question 2: I think it would be fine to use ContentEntityInterface?

pmelab commented 5 years ago

@amateescu please correct me if i'm wrong

amateescu commented 5 years ago

For question 1, @pmelab is spot on :)

For question 2, I had to deal with the same problem a few times in the revision tree stuff, so maybe it would be better to open a core issue to make RevisionableInterface extend EntityInterface.

chindris commented 5 years ago

I think this is ready for the final review. I implemented point 1) and just left the RevisionableInterface for now as it is.