Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ben Gdovicak 5 posts 34 karma points
    Nov 30, 2016 @ 21:26
    Ben Gdovicak
    0

    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.

  • Ben Gdovicak 5 posts 34 karma points
    Jan 04, 2017 @ 20:10
    Ben Gdovicak
    0

    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.

  • Kevin Jump 985 posts 5475 karma points mvp c-trib
    Jan 04, 2017 @ 20:56
    Kevin Jump
    100

    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.

  • Ben Gdovicak 5 posts 34 karma points
    Jan 05, 2017 @ 01:15
    Ben Gdovicak
    0

    Thank you Kevin.

  • Kevin Jump 985 posts 5475 karma points mvp c-trib
    Jan 16, 2017 @ 16:03
    Kevin Jump
    0

    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

    Install-Package uSync.Core -Pre
    

    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

  • Kevin Jump 985 posts 5475 karma points mvp c-trib
    Jan 20, 2017 @ 13:52
    Kevin Jump
    1

    Hi

    The latest release of uSync has gone out today (v3.3.1) and it contains the fixes for this.

    PM> update-package uSync 
    

    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

Please Sign in or register to post replies

Write your reply to:

Draft