django-cms / djangocms-moderation

Other
13 stars 20 forks source link

Fix inconsistent moderation request publishing states #187

Closed Aiky30 closed 3 years ago

Aiky30 commented 3 years ago

Published items have been found in projects where the version is not editable due to a timeout error that occurred when publishing.

The ModerationRequest object has an inconsistent state of:

When a content object has been published and the collection is archived the is_active state is supposed to have changes to False. It's possible that because the state change is covered by a transaction but the published step is not the state has been rolled back due to a timeout error.