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 #3081315: 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: 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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

venkatadapa created an issue. See original summary.

venkatadapa’s picture

StatusFileSize
new767 bytes
rakshith.thotada’s picture

@venkatadapa Thanks, The above patch #2 works fine for me. Tested the translation scheduling

venkatadapa’s picture

StatusFileSize
new1.14 KB

@rakshith.thotada glad that it works for you. Use this patch instead of the previous one which solves some edge cases.

joseph.olstad’s picture

***EDIT***

nvm

***EDIT***

joseph.olstad’s picture

StatusFileSize
new1.04 KB

new patch , new reroll.

phenaproxima’s picture

Project: Lightning Workflow » Lightning Scheduler
Version: 8.x-3.x-dev » 8.x-1.x-dev
kaszarobert’s picture

Assigned: Unassigned » kaszarobert
Status: Needs review » Needs work

Okay, I reroll the patch and see what we can do about multi-language use cases.

kaszarobert’s picture

Issue tags: +Needs tests
joseph.olstad’s picture

This mr probably doesn't work, the patches never worked properly , so recommend a new approach.
scheduled transitions module works with multilingual

kaszarobert’s picture

Issue summary: View changes