Problem/Motivation
On continuous jobs...
- JobItem::addTranslatedData() calls JobItem::needsReview()
- JobItem::needsReview() calls JobItem::acceptTranslation() wrapped in a try/catch block
- While JobItem::acceptTranslation() can throw exceptions, is also able to fail softly by returning FALSE. But the caller doesn't account for this scenario and nothing logged
This makes us lose valuable information about the failure.
Proposed resolution
The callers should also treat the case when JobItem::acceptTranslation() fails softly by returning FALSE
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork tmgmt-3580841
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
claudiu.cristeaWorking on this
Comment #4
claudiu.cristeaReady for review
Side note: I see there's also Job::acceptTranslation() but that's weird as is used only in tests. Didn't touch it
Comment #5
huzookaChanges are clear and obvious.
I mark this RTBC, hoping to get some feedback from maintainers in regard of the API changes.
Comment #7
claudiu.cristeaThank you for review. Merged.