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 44 posts 216 karma points
    1 week ago
    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 1973 posts 12396 karma points MVP 5x c-trib
    1 week ago
    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 44 posts 216 karma points
    1 week ago
    Per Bolmstedt
    0

    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 1973 posts 12396 karma points MVP 5x c-trib
    1 week ago
    Kevin Jump
    100

    hi

    also handler names are documented here :

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

  • Kevin Jump 1973 posts 12396 karma points MVP 5x c-trib
    1 week ago
    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.

Please Sign in or register to post replies

Write your reply to:

Draft