KevinJump / uSync-Legacy

uSync for Umbraco 4/6 - bits of the database to disk, and stuff like that
https://jumoo.co.uk/usync/
Mozilla Public License 2.0
75 stars 64 forks source link

Syncing dictionary items - Different GUID's #183

Open b-detaill opened 6 years ago

b-detaill commented 6 years ago

Hello Kevin

My team and I are trying to sync our dictionary items across different instances of Umbraco 7. We noticed that the GUID's in the database aren't the same when we do an import. This gives some unwanted effects when changing the key of a dictionary item.

Bert

KevinJump commented 6 years ago

Hi What version of umbraco are you running ?

I think (although its been a while) that some older versions of umbraco did keep changing dictionary guid values even when you set them, so it might be that - but i will also have a quick check.

b-detaill commented 6 years ago

We are running on umbraco version 7.10.4

KevinJump commented 6 years ago

that's sad (for me) - almost certainly means its a uSync thing - I will do some investigation.

KevinJump commented 6 years ago

Right the comments in the code give this away https://github.com/KevinJump/uSync/blob/v4_master/Jumoo.uSync.Core/Serializers/DictionarySerializer.cs#L64

at least upto v7.5.4 of umbraco you can't set the guid in a dictionary item - you can at 7.11.1 so O need to go find out at what version this became possible (my guess is v7.6) - and then make sure we do a version check before we set it.