Auto approve finished translations by cron

Created on 13 August 2024, 6 months ago
Updated 3 September 2024, 6 months ago

Problem/Motivation

Auto accept finished translations setting is great with usage, but in some cases it may impact some unexpected behaviour. For complex page with multiple paragraphs embedded and with multiple translations requested it's possible to get notification from translation vendor to publish multiple translations the same time. It may ends with database table locks and in result some data are not published.

Proposed resolution

Proposed solution is to add Enqueue finished translations for translation provider. That setting will work with Auto accept finished translations enabled only.

By enabling Enqueue finished translations setting translations will be stored in job item, but published by cron run, or by running drush queue:run job_item_auto_approve_queue_worker.

User interface changes

Added Enqueue finished translations setting to translation provider.

API changes

\Drupal\tmgmt\Entity\Translator has added two public methods isEnqueueAutoAccept() and setEnqueueAutoAccept()

Feature request
Status

Needs review

Version

1.0

Component

Core

Created by

🇵🇱Poland relim

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024