Problem/Motivation
The TMGM messages are flooded with no reason by the "Source was updated, changes were ignored as job item is still active." message
Why it's wrong?
The source was not updated. A translation was accepted. ContinuousManager::addItem() has no guard to check whether there are translation changes, it only checks "entity saved + open item exists" and logs regardless.
Proposed resolution
Maybe we should add a new $entity->getUntranslated()->hasTranslationChanges() guard in ContinuousManager::addItem() and only record the message when really makes sense
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork tmgmt-3611439
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:
- 3611439-condition
changes, plain diff MR !175
- 3611439-messages-flooded-by
changes, plain diff MR !174
Comments
Comment #2
claudiu.cristeaComment #3
claudiu.cristeaComment #4
claudiu.cristeaComment #5
claudiu.cristeaComment #6
alorencComment #8
alorencComment #9
alorencOne option is to remove the message entirely, as it is purely diagnostic. We do not log anything when shouldCreateItem() evaluates to FALSE, or when a customization changes that outcome via ShouldCreateJobEvent.
Logging only the "active job item" case is inconsistent with the rest of addItem(), where similar outcomes are handled silently. The simplest solution may be to remove this log message altogether, so the code no longer treats this single condition differently from the others.
Comment #11
claudiu.cristeaThank you for the 2nd MR, I will close the 1st. Some nits in the 2nd MR and I think is worth it top add very simple kernel test.
Comment #14
yaqbick commentedComment #15
claudiu.cristeaThe issue was tagged with "Needs tests". See #11
Comment #16
alorencAdded a test, but the change itself is trivial. Adding additional tests only creates unnecessary noise.
Comment #17
yaqbick commentedComment #19
claudiu.cristeaMerged. Thank you for contribution