Allow continuous jobs to quietly ignore entities without translatable content

Created on 7 June 2024, 9 months ago
Updated 10 June 2024, 9 months ago

Problem/Motivation

We have some content nodes that have non-mandatory translatable fields, and we want to run continuous jobs to translate from EN to FR, and vice versa. If the content is filled out with only values given to non-translatable fields, tmgmt throws an unhandled exception, but this is a perfectly allowable use case in this site. I feel it should be allowable to have this continuous job silently ignore this content.

Steps to reproduce

  1. Create a node type "Song" with a description. (Idea here is that song titles shouldn't be translated)
  2. Enable translation for the node type, only translating the description but not the title.
  3. Create a continuous TMGMT job to translate songs from en to any other language.
  4. Create a song with a title but leave the optional description field empty.
  5. WSOD

Proposed resolution

See patch attached to #3. I have added a new checkbox field to the continuous settings form to allow the job to silently ignore entities in this situation.

I'm not sure if this is the correct way to go about this, or if this is even a viable solution for other users.

🐛 Bug report
Status

Active

Version

1.15

Component

Core

Created by

🇦🇺Australia Seth Hilder

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

Comments & Activities

Production build 0.71.5 2024