First, thank you for uSync. It has been very helpful integrating Umbraco with version control.
One question and/or problem I am having is when I remove a doctype from a composition I can see that uSync properly updates the def.config. The removed doctype is removed from the composed doctype in the xml. The issue is when I run a uSync import on a different Umbraco instance, the composition is not updated and therefore not reflecting what is in the xml.
I have searched Github and Google attempting to verify this as expected behavior or not but have not been successful. I would love to contribute to uSync if this is not yet a feature. I just need to understand the expected functionality better.
I have repeated the removal of a doctype from a composition several times and have not seen it removed in backoffice when syncing on other machines. Without digging in the code yet, it appears this is functionality that would need to be added.
Remove Doctype from Composition with uSync
First, thank you for uSync. It has been very helpful integrating Umbraco with version control.
One question and/or problem I am having is when I remove a doctype from a composition I can see that uSync properly updates the def.config. The removed doctype is removed from the composed doctype in the xml. The issue is when I run a uSync import on a different Umbraco instance, the composition is not updated and therefore not reflecting what is in the xml.
I have searched Github and Google attempting to verify this as expected behavior or not but have not been successful. I would love to contribute to uSync if this is not yet a feature. I just need to understand the expected functionality better.
Thanks in advance for any guidance.
I have repeated the removal of a doctype from a composition several times and have not seen it removed in backoffice when syncing on other machines. Without digging in the code yet, it appears this is functionality that would need to be added.
Hi Ben
yes, well spotted :) looks like the composition code is only additive at the moment.
however it looks like its a reasonably easy fix. https://github.com/KevinJump/uSync/commit/0b288350a3d4a0bf91cc5ee2f0fcf5af1d14288d
i'll do some testing to check i haven't broken anything else and put this in the next patch release of uSync.
Thank you Kevin.
Hi
just for info there is a beta of the next release on nuget that contains the fix to this issue. v5.6.1.740
the full patch release of umbraco will probably be released end of the month, but if you need this fix you can just update uSync.Core as above.
Kevin
Hi
The latest release of uSync has gone out today (v3.3.1) and it contains the fixes for this.
or download the package from our
should apply the changes and the dashboard should report v3.3.1 and (5.6.1 for core)
this fixes the isue for both Content Type and Media Type Compositions
is working on a reply...