-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Describe the bug
I have a setup where one web project serves as the baseline (root), and another web project consumes shared resources via uSync.
The issue arises with the block grid and block list data types.
We have created a new child web project which require that we remove some of the already assigned blocks on the shared data type (block grid).
When we do remove a element the following is added to the local usync file
{
"contentElementTypeKey": "0ac1e4db-8a37-467f-9223-95e698efff61",
"allowAtRoot": true,
"allowInAreas": true,
"groupKey": "3f5a81da-4173-41af-aff6-98349cd0da00",
"label": "uSync:Removed in child site."
}This seems to break the Import both manually and also ImportAtStartup and results in that other changes can no longer be synced to the websites.
To Reproduce
The project should run on latest version of Umbraco and uSync.
- setup a new Umbraco web site and install the latest version of Umbraco and uSync. this will serve as our root site. (see "About the site" section for details)
- do the same for an additional web site serving as the consuming site.
- use the uSync settings provided from the section "Additional context" in each respectable websites appsetting,json
- in the root web site create a block grid data type to produce som usync files.
- add some blocks to the block grid. Save the changes.
- run the consuming website next.
- the block grid and block list data type should now be available.
- try and make a change to the block grid, remove one of the blocks. Save the changes.
- this should produce the local usync file. (you should see a label like "label": "uSync:Removed in child site." in the list of blocks)
- now if you try and manually import usync in consuming website it fails the process.
Expected behavior
The new changes made in root site should be able to be imported in the consuming website. (through magic merge)
Adding additional blocks in the child website works without issue. Therefor we would expect removing blocks in the child website also work in regards to block grid and block list data types.
About your Site (please complete the following information):
- Umbraco Version: 16.2.0
- uSync Version: 16.0.8
- Chrome version: 141.0.7390.55
Additional context
Related to: #747
Root site is configured with the following uSync setting
"uSync": {
"Settings": {
"IsRootSite": true,
"ImportAtStartup": "Settings"
},
"Sets": {
"Default": {
"Handlers": {
"ContentHandler": {
"Enabled": false
},
"MediaHandler": {
"Enabled": false
}
}
}
}
},Consuming site is configured with the following uSync setting
"uSync": {
"Settings": {
"LockRoot": false,
"ImportAtStartup": "Settings",
"Folders": [
"~/../UmbracoBaseline/uSync/Root",
"uSync/v16"
]
},
"Sets": {
"Default": {
"Handlers": {
"ContentHandler": {
"Enabled": false
},
"MediaHandler": {
"Enabled": false
}
}
}
}
},