Changing the moderation state field translatability isn't reflected in the content translation UI and it's unclear what changing this accomplishes

Created on 18 October 2019, about 5 years ago
Updated 23 February 2024, 9 months ago

After installing "Content Moderation" and "Workflows" modules, I can't uncheck a "Moderation state" checkbox in "Content Language and Translation" settings. After saving configuration checkbox doesn't switch his state. It always on. I'm tested on clear Drupal 8.7.8 install and on Unami test site. It's bug or feature?
I thinking, "Moderation state" is states of content in db, and it should not be translated.

PHP: 7.0.33
Drupal: 8.7.8
OS: Doesn't matter

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
Content moderationΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡¦πŸ‡ΊAustralia @Sam152
Created by

πŸ‡ΊπŸ‡ΈUnited States Smartcat Development

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    each translation can essentially have their own moderation state associated with them

    Having some trouble with this on nodes where we have set the 'Published status' to be untranslatable. This makes the published status sync between the translations, but the moderation state becomes mismatched. I thought I could just uncheck that too but am seeing what is reported here, it is always checked when the form loads.

    Should the moderation state be translatable if the published status is not? I guess I can see how it still might be different but that doesn't make much sense in practice. Or at least, I think it is logical to want this to not be translatable.

  • πŸ‡§πŸ‡ͺBelgium herved

    #12 we had a similar requirement for one of our projects (to sync the published state across translations).
    We investigated https://www.drupal.org/project/moderation_state_sync β†’ but this creates tons of revisions so it is not ideal.

    After some investigation if looks like moderation state is forced to be translatable (by design), and there is no easy way to get around it.
    I came up with this, which instead of syncing makes the moderation state untranslatable, which prevents a revisions galore.
    It seems to be working but EntityUntranslatableFieldsConstraintValidator gets triggered and I didn't have time to properly test it.

    Eventually we abandoned the idea, for now. But it would be nice to find a solution for this.
    Perhaps moderation state could work according to the translatability status of the published field? but perhaps there are implications.

Production build 0.71.5 2024