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
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | lightning_scheduler-3076530-6.patch | 1.04 KB | joseph.olstad |
Issue fork lightning_scheduler-3076530
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
Comment #2
venkatadapa commentedComment #3
rakshith.thotada commented@venkatadapa Thanks, The above patch #2 works fine for me. Tested the translation scheduling
Comment #4
venkatadapa commented@rakshith.thotada glad that it works for you. Use this patch instead of the previous one which solves some edge cases.
Comment #5
joseph.olstad***EDIT***
nvm
***EDIT***
Comment #6
joseph.olstadnew patch , new reroll.
Comment #7
phenaproximaComment #8
kaszarobertOkay, I reroll the patch and see what we can do about multi-language use cases.
Comment #10
kaszarobertComment #11
joseph.olstadThis mr probably doesn't work, the patches never worked properly , so recommend a new approach.
scheduled transitions module works with multilingual
Comment #12
kaszarobert