Copied to clipboard

Flag this post as spam?

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


  • Paul Woodland 7 posts 57 karma points
    Aug 02, 2023 @ 14:39
    Paul Woodland
    0

    Selectively ignoring properties

    Hi,

    We use uSync Complete to move content between our production/staging/development environments. It is working well, however because of some automated tasks that run on the content, which can cause changes to properties (especially the SortOrder of the content), it thinks that a lot more content has changed than it really has.

    So I was wondering, is there any way to selectively ignore properties such as the SortOrder, so they don't get compared during a push/pull? I've looked through the documentation but can't find any settings or extensions (notifications etc, or something like ISyncMapper but for the content as a whole instead of one editor type) that allow for changing the properties that will be saved to the XML for comparison. Have I missed any whilst looking, or is it not possible to do at the moment?

    Many thanks for any help!

  • Kevin Jump 2311 posts 14697 karma points MVP 7x c-trib
    Aug 02, 2023 @ 16:43
    Kevin Jump
    100

    Hi Paul,

    There is a config property "DoNotSerialize" that can be used to stop content properties from being serialized, but SortOrder isn't a property in that sense its a core property

    I've written this reply about 4 times now, TLDR: there are ways, none of them are super easy and require overriding the base Handlers and Serializers for uSync - none of it is a dirty hack, but it's quite a bit of in-depth code to get it all working.

    I think the easier answer might be for us to raise the issue and put a config clause around sort order in the code 🤷

    If you are using v10 or v12 we can probably sneak this in before a release next week. ? (Issue https://github.com/KevinJump/uSync/issues/527)

    If you are running v8 then i could give you a very long explanation on how to do it all. ?

  • Paul Woodland 7 posts 57 karma points
    Aug 02, 2023 @ 23:11
    Paul Woodland
    0

    Hi Kevin,

    Many thanks for the quick response. I'd missed the DoNotSerialize configuration setting, that will be useful, thank you.

    Thank you for putting the sort order option in so quickly, I can see the commit already. We are using v11 at the moment, but we should be moving to v12 in the next couple of weeks, so will be able to make use of it then. Hadn't been able to find previous topics on it, most of what I'd found was people saying the opposite (that they wanted to sync the order, but it wasn't working).

    Thanks again!

  • JohanFerreiraAtMri 3 posts 23 karma points
    Nov 03, 2023 @ 07:53
    JohanFerreiraAtMri
    0

    Hi Kevin.

    We have a issue, https://our.umbraco.com/packages/developer-tools/usync/usync/112970-how-to-stop-overriding-media-url-when-include-media-is-turned-off-when-doing-a-pushpull-from-other-environments, that may benefit from the explanation for overriding the base handlers in V8. Can you please elaborate on this more ?

Please Sign in or register to post replies

Write your reply to:

Draft