Jumoo / uSync.Complete.Issues

Public Issue tracker and roadmap for uSync.Complete
https://jumoo.co.uk/usync/complete/
2 stars 1 forks source link

Query about how uSync published scheduling works #111

Closed LottePitcher closed 3 years ago

LottePitcher commented 3 years ago

At the moment we cannot publish any changes as we are getting a warning "Publish: 'Error' could not be published because the item is scheduled for release."

This is in the production environment, as a result of editors doing a scheduled 'push' from staging using uSync Publisher.

Am I right that the Scheduling feature of uSync Publisher works as follows:

As if so any problems/queries we have actually relate to core Umbraco scheduling publishing, and nothing specific to uSync? I think that's the case but just wanted to double check. Thank you!

Version:

KevinJump commented 3 years ago

Hi,

yeah schedules are complicated :( - I think you are right if the scheduled dates are sent then uSync is using Umbraco functionality to schedule the publish of the items. if they then can't be published its an Umbraco thing.

But there is one Schedule publish fix in uSync v8.8.3 - that might be work updating to - This fixed an issue where dates where not being removed on a subsequent publish. (https://github.com/KevinJump/uSync8/issues/199)


In terms of how it works - there is quite a lot to it abd there are two elements as to how uSync handles this.

  1. it imports the schedules against a content item (https://github.com/KevinJump/uSync8/blob/v8/8.7-main/uSync8.ContentEdition/Serializers/ContentSerializer.cs#L196)
  2. it then works out if the said item should be published or saved https://github.com/KevinJump/uSync8/blob/v8/8.7-main/uSync8.ContentEdition/Serializers/ContentSerializer.cs#L335

If there are issues in uSync with publishing then they will probibly be in the second part when we publish/save or unpublish the content:

if the content node has cultures (so it a multi-variant culture).

single culture publish

LottePitcher commented 3 years ago

Yes, I am just discovering the complexities around scheduled publishing!

This is super useful, thank you very much indeed. And yes, noted about the suggestion to upgrade, sounds good idea.