Copied to clipboard

Flag this post as spam?

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


  • Per Bolmstedt 84 posts 380 karma points
    Oct 13, 2021 @ 21:14
    Per Bolmstedt
    0

    uSync 9: disabling handlers & schema issues

    How do you disable handlers in a set in uSync 9?

    For example, in development we want to import content/media, but not in test/production.

    This was easy with uSync 8.

    The documentation mentions handlers and disabledHandlers on sets, but not how to configure those properties. Is it just a list of named handlers? Are the names the same as in uSync 8?

    Also,

    • the uSync setting schema file in App_Plugins was not updated to match the documentation when updating the NuGet package.

    • the documented uSync settings schema has at least two typos (ExportAtStatup and Enalbed) that don't match the example settings. I'm not sure whether to use the example settings or the schema settings.

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Oct 14, 2021 @ 08:41
    Kevin Jump
    1

    Hi,

    we are just in the process of updating all our docs, so they aren't quite finished yet, but disabling content edition can be done with DisabledHandlers, but actually its slightly easier to do it with the handler groups (so handlers are either settings, or content)

    for example disabling content / media being saved to disk - can be done configuring uSync to only save settings

    {
        "uSync" : {
            "Settings": {
                "ExportOnSave" : "Settings" 
            }
        }
    }
    

    Dev docs are here:
    https://dev-docs.jumoo.co.uk/usync/docs/uSync/guides/content

  • Per Bolmstedt 84 posts 380 karma points
    Oct 18, 2021 @ 18:03
    Per Bolmstedt
    1

    Thank you. What should we put in DisabledHandlers to disable specific handlers?

    This doesn't seem to work; it results in an empty list of disabled handlers when looking in the uSync Settings GUI:

        "DisabledHandlers": [ "contentHandler", "mediaHandler", "domainHandler", "languageHandler" ],
    

    EDIT: Just noticed it works if the Set is named Default.

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Oct 18, 2021 @ 18:47
    Kevin Jump
    102

    hi

    also handler names are documented here :

    http://usync.docs.jumoo.co.uk/docs/reference/handlernames

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Oct 14, 2021 @ 08:42
    Kevin Jump
    1

    the schema file isn't in use yet, we are trying to figure out a way to inject our schema into the existing umbraco schema file, so you get intellisense inside appsettings.json, haven't quite figured it out in a reliable way.

  • Piotr Bach 18 posts 133 karma points c-trib
    18 days ago
    Piotr Bach
    0
Please Sign in or register to post replies

Write your reply to:

Draft