Skip to content

uSync overrides duplicate doc types #256

@Scherling

Description

@Scherling

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:

  1. Create a new document type "Card Element" with alias cardElement1
  2. Save the document type
  3. Look for the file at usync/data/DocumentType/card-element/def.config
  4. Look for the Alias specified for this document type, it should show up as "cardElement1"
  5. Create a new document type in the same location named "Card Element" with alias "cardElement2"
  6. Save the document type
  7. 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

Metadata

Metadata

Assignees

Labels

4.0.164.0.16 - release

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions