Before creating an issue in the uSync tracker, let me check here if I’m missing anything here. To me, it seems that working with multiple sets in uSync doesn’t work in uSync 16(.0.2).
I have this appSettings.json:
"uSync": {
"Settings": {
"RootFolder": "uSync/",
"DefaultSet": "Default",
"ImportAtStartup": "Settings",
"ExportOnSave": "None",
"UiEnabledGroups": "Settings",
"AddOnPing": false
},
"Sets": {
"Default": {
"HandlerGroups": [
"ContentTypeHandler",
"DataTypeHandler",
"LanguageHandler",
"MacroHandler",
"MediaTypeHandler",
"TemplateHandler",
"DictionaryHandler",
"ContentTemplateHandler"
],
"DisabledHandlers": [
"ContentHandler",
"DomainHandler",
"MediaHandler",
"RelationTypeHandler"
]
}
}
}
These settings are fine and act as the default starting point of the environment-specific uSync settings. For development, I want a much different behaviour than test, acceptance and production, so I created another set just to be sure. So this is the appSettings.Development.json:
"uSync": {
"Settings": {
"DefaultSet": "Development",
"ImportAtStartup": "All",
"UiEnabledGroups": "All",
"ExportOnSave": "All",
"ReportDebug": true,
"EnableHistory": false
},
"Sets": {
"Development": {
"Enabled": true,
"HandlerGroups": [ "ContentHandler", "DomainHandler", "MediaHandler", "RelationTypeHandler", "ContentTypeHandler", "DataTypeHandler", "LanguageHandler", "MacroHandler", "MediaTypeHandler", "TemplateHandler", "DictionaryHandler", "ContentTemplateHandler" ],
"DisabledHandlers": [],
"HandlerDefaults": {
"FailOnMissingParent": true
}
},
"Default": {
"Enabled": false
}
}
}
So effectively, I disabled the default set and added a development set. As you can see, this set enables all handlergroups and has no disabled handler. In the past this worked fine. However, in the backoffice, it will always show ‘default’ as set and have the 4 handlers disabled as specified in the appSettings.config:
Just to make sure that the appSettings.json and appSettings.development.json weren’t interfering, I created a single configuration for uSync with to sets, where I default to the ‘development’ set instead of the ‘default’ set:
"uSync": {
"Settings": {
"RootFolder": "uSync/",
"DefaultSet": "Development",
"ImportAtStartup": "Settings",
"ExportOnSave": "None",
"UiEnabledGroups": "All",
},
"Sets": {
"Default": {
"HandlerGroups": [
"ContentTypeHandler",
"DataTypeHandler",
"LanguageHandler",
"MacroHandler",
"MediaTypeHandler",
"TemplateHandler",
"DictionaryHandler",
"ContentTemplateHandler"
],
"DisabledHandlers": [
"ContentHandler",
"DomainHandler",
"MediaHandler",
"RelationTypeHandler"
]
},
"Development": {
"Enabled": true,
"HandlerGroups": [
"ContentHandler",
"DomainHandler",
"MediaHandler",
"RelationTypeHandler",
"ContentTypeHandler",
"DataTypeHandler",
"LanguageHandler",
"MacroHandler",
"MediaTypeHandler",
"TemplateHandler",
"DictionaryHandler",
"ContentTemplateHandler"
],
"DisabledHandlers": [],
"HandlerDefaults": {
"FailOnMissingParent": true
}
}
}
}
As far as I know, this should at least give you the option in the backoffice to select the set to use AND the development set should be the default. But once again, I only see the default set in the backoffice with the 4 disabled handlers and I don’t see any option for selecting a different set:
Even if I disable the default set, it will still only show the default set.
Seems to me it’s a bug, but uSync config in appSettings can be a bit tricky, so I wanted to check if I’m missing something here.