Copied to clipboard

Flag this post as spam?

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


  • Piotr Kłys 2 posts 72 karma points
    Dec 11, 2017 @ 09:55
    Piotr Kłys
    0

    uSync and changes in packages

    Hello,

    to start with I'm a newbie in Umbraco and I'm trying to solve an issue connected with data synchro via uSync. I have installed uSync with ContentEdition to track content, docTypes, views etc. and I have a problem with tracking changes connected with packages - I use workflow (https://our.umbraco.org/projects/backoffice-extensions/plumber-workflow-for-umbraco/). I have made some changes in it (I added some groups) but these changes are not tracked. Do you know how to solve it? Should I write some uSync extension for a workflow package?

    Best regards, Piotr Klys

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Dec 11, 2017 @ 10:31
    Kevin Jump
    0

    Hi

    yeah - i don't know how Plumber stores its workflows, so it might be worth looking into that.

    if plumber is storing config on disk, then copying the right folders / files will probably be all you need to do.

    if the workflows are stored within the database, then yes you will either have to work out a way of copying them, or write a Handler for uSync to extract the plumber data to disk and import it at the other end.

    at the basic level usync handlers impliment the ISyncHandler interface, if you go down this road the best documentation is probably the existing handlers in the source code (the language handler is quite simple)

    .. .. .. ..

    I've just had a quick look at the plumber source code, and I suspect you will need to write some sort of process/handler to transfer workflows between umbraco instances.

    It looks like plumber stores config stuff in the db and it uses the Int Ids as part of settings and workflows. (both node and user). these will change between Umbraco Instances - for other handlers, uSync converts these Int values into the underling key value (a guid) and then sets that at the other end so there is something to match on.

    if you where moving plumber config between umbraco sites you would also need a way of mapping the IDs between installs (i think).

  • Piotr Kłys 2 posts 72 karma points
    Dec 12, 2017 @ 07:32
    Piotr Kłys
    0

    Thank you Kevin for your response. I must try this "ISyncHandler" option.

Please Sign in or register to post replies

Write your reply to:

Draft