uSync overrides duplicate doc types
Opened this issue · 0 comments
Scherling commented
Description
In Umbraco, the unique identifier for a document type is the Alias, not the Name.
When uSync generate the def.config files, it uses the Name for the folder structure.
This means I am allowed in Umbraco to have multiple document types with the same name, in the same folder, but with different aliases. However, uSync will only store whichever of those document types I saved last, effectively deleting the others when running a full import.
To Reproduce
Steps to reproduce the behavior:
- Create a new document type "Card Element" with alias cardElement1
- Save the document type
- Look for the file at usync/data/DocumentType/card-element/def.config
- Look for the Alias specified for this document type, it should show up as "cardElement1"
- Create a new document type in the same location named "Card Element" with alias "cardElement2"
- Save the document type
- def.config will now have been overridden and show the Alias as "cardElement2"
Expected behavior
Since Umbraco never uses names as identifiers, but aliases, I would expect the folder structure usync generates to use these instead.
Version
- Umbraco Version: 7.15.5
- uSync Version: uSync.BackOffice 4.0.15.0) (uSync.Core 6.0.15.0