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?
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 🤷
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).
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!
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 propertyI'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. ?
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!
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 ?
is working on a reply...