Skip to content

uSYnc.Complete v15.1.5.0: sync problems when pulling data types from Umbraco v13 source #261

@afabri73

Description

@afabri73

Describe the bug
Hi Kevin,
I need to align a new website (Umbraco v15.3.0) to the current production website (Umbraco v13.7.2).
The problem is on pulling old Data Types into the new website.

Version (please complete the following information):

  • Umbraco Version: 15.3.0
  • uSync.Complete Version: 15.1.4

To Reproduce

  1. First of all I used in Umbraco v13 all datatypes compatible with v15 and removed all non-compatible datatypes (e.g. Umbraco.UmbNav.Web, etc.)
  2. I exported all the default datatypes and I see that there are differences between the v13 and v15.

OLD DATATYPE (v13)

<?xml version="1.0" encoding="utf-8"?>
<DataType Key="0e9794eb-f9b5-4f20-a788-93acd233a7e4" Alias="Label (datetime)" Level="1">
  <Info>
    <Name>Label (datetime)</Name>
    <EditorAlias>Umbraco.Label</EditorAlias>
    <DatabaseType>Date</DatabaseType>
  </Info>
  <Config><![CDATA[{
  "ValueType": "DATETIME"
}]]></Config>
</DataType>

NEW DATATYPE (v15)

<?xml version="1.0" encoding="utf-8"?>
<DataType Key="0e9794eb-f9b5-4f20-a788-93acd233a7e4" Alias="Label (datetime)" Level="1">
  <Info>
    <Name>Label (datetime)</Name>
    <EditorAlias>Umbraco.Label</EditorAlias>
    <EditorUIAlias>Umb.PropertyEditorUi.Label</EditorUIAlias>
  </Info>
  <Config><![CDATA[{
  "umbracoDataValueType": "DATETIME"
}]]></Config>
</DataType>
  1. Reading the documentation I set the mapping of the properties in CustomMappings settings:
    `"uSync": {
    "Publisher": {
        "Settings": {
            "AppId": "----------------------------",
            "AppKey": "------------------------------",
            "IncludeHost": false,
            "IncomingEnabled": true,
            "MediaPageSize": 5,
            "PageSize": 15,
            "requireAuthentication": true
        }
    },
    "Settings": {
        "BackgroundNotifications": true,
        "CustomMappings": {
            "DatabaseType": "",
            "ValueType": "umbracoDataValueType",
            "FileExtensions": "fileExtensions"
        }
    }
},`
  1. When I try to pull datatypes the comparison and the import seems to don't use the new mapping

Expected behavior
For complete compatibility with v15, for example when I pull (or import) the "Label (datetime)" Data Type, I want to not import the "DatabaseType" property (present in the old data type) and the value of "ValueType" property, present in Config, must be put into the new "umbracoDataValueType" property (present in v15)
How can I resolve the problem?

Screenshots
This is an example.
Databasetype property not removed and in Config property, uSync will update the name of the new "umbracoDataValueType" property with the old "ValueType" property

Image

Thank you and I look forward to your reply
Adriano

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions