Copied to clipboard

Flag this post as spam?

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


  • Oleg Velb 49 posts 240 karma points
    Oct 19, 2013 @ 18:49
    Oleg Velb
    0

    Deletion document type

    Firstly - thanks for this package.

    I use Umbraco1.6.5 and usync configuration

    <usync read="true" write="false" attach="true" folder="~/uSync/" archive="~/uSync.Archive" versions="true" preserve="false">

    I have got a problem when I try to delete a doctype.

    I have got 2 instances of umbraco project. When I create a doctype in the first instance and then copy an usync folder to the second instance it works fine. I can see my docype that was created in the first instance. But when I delete doctype and then copy the usync folder - the doctype is not deleted from the second instance.

    I wonder if I all do right or maybe this functionality has not implemented yet?

    Any advices?

    Thanks,Oleg

  • Kevin Jump 1036 posts 6084 karma points mvp c-trib
    Oct 19, 2013 @ 19:39
    Kevin Jump
    100

    Hi

     

    Yes it isn't implemented within the package yet - the latest development branch in github has functionality to delete but its quite a leap.

     

    In order to do deletes usync needs to track the unique ids of the datatypes on one install and map them across to any other install.

     

    The dev branch is doing this via a set of local XML files placed in the temp folder .

     

    These map the master (source) guid for a doctype to the local guid on each install. A usync actions file in the usync folder is then tracking deletes and renames of doctypes across installs.

     

    This is how usync.contwntesition works for content so hopefully it will work well... But the amount of change means I want to test it a lot before updating the main package to it

  • Oleg Velb 49 posts 240 karma points
    Oct 20, 2013 @ 22:46
    Oleg Velb
    0

    Thank you for clarifying.

  • Bilal Haidar 137 posts 393 karma points
    Sep 14, 2016 @ 21:24
    Bilal Haidar
    0

    Hello kevin, Does uSync support now Document Type Deletions Sync?

    Thanks /Bilal

  • Kevin Jump 1036 posts 6084 karma points mvp c-trib
    Sep 15, 2016 @ 12:46
    Kevin Jump
    0

    Hi

    yes, uSync (v3+) fully supports deletions of all the things !

    when you delete stuff, it gets logged in the uSyncActions.config file (in side the usync/data folder).

    then at the other end this file is used to delete the things.

    Kevin

  • Bilal Haidar 137 posts 393 karma points
    Sep 15, 2016 @ 13:25
    Bilal Haidar
    0

    Do I have to delete myself any files from the uSync folder? The other day, this scenario happened with me, where I had to delete a Document Type. Then after that, I noticed an exclamation mark in VS uSync folder for the file I deleted.

    When I pushed changes to web, I got my deployment broken and had to delete everything and do a fresh new installation.

    Also, I am not sure if you could help me out on this. I had established a web app on Azure together with a staging deployment slot.

    I usually publish to staging, then I publish again to production (I don't make use of SWAP). However, for some reason, both were pointing to the same DB, despite the fact I changed the staging to point to staging DB. I solved this by making the staging use SQL Compact and the production use normal SQL. That sounds weird!

    So back to the main topic, do I need to make any special configuration to make deletions work?

    Thanks /Bilal

Please Sign in or register to post replies

Write your reply to:

Draft