Make scheduled moderation states work with multilingual

Created on 22 August 2019, almost 6 years ago
Updated 12 August 2024, 10 months ago

The module right now only works for single language sites, there are no code or test cases added if translatable entities are on the site. Need to find a solution and define proper behavior for these.

Also small note from 🐛 Lightning Scheduler Force a new revision with entity save and that does not work well if all the translations are supposed to be scheduled for moderation change Closed: duplicate : we have the same scheduler widget applied to latest revision and hence all translation entities. If any node is scheduled for moderation change - it changes only that particular langcode revision but not the other languages. We tried applying passing translation languages for scheduler to update the moderation state, however Scheduler saves the node with $entity->save() and that triggers new revision to be created. and hence it will still not work for translation revisions.

Original report:
Enable multiple languages.
Add content for any entity.
Add translations to the entity.
All entities are in moderation state Draft by default.
Set the moderation state change to In review at some particular date and time with lightning scheduler
The same moderation settings will be applied to all other translations.
Run the cron job after time elapses.

Observation:
Only the source language (English in my case) node got updated correctly with the moderation state change i.e chaged to In Review, and other translation entities are still in Draft state.

The same issue already created in the lightning scheduler module, but that patch doesn't apply when you use the composer based project with
lightning or lightning_workflow module as your dependency, Patch needs to be available for lightning_workflow module.

https://www.drupal.org/project/lightning_scheduler/issues/3003907 🐛 Make this work with multilingual Closed: won't fix

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India venkatadapa

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024