Needs work
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
Core
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
6 Apr 2016 at 02:09 UTC
Updated:
25 Apr 2016 at 21:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
edurenye commentedFirst approach.
It works and send the mail.
I think we should somehow make the template configurable.
And I do not know how to avoid spamming when many items get ready.
Comment #3
edurenye commentedForgot the patch.
Comment #5
miro_dietikerSome first feedback.
You are force setting the body with rendered values here.
Instead i would expect to have a mail template with placeholders registered in courier allowing a user to modify the mail through the UI. Then we would only provide the tokens here and select that mail template.
Sending a mail is an internal thing. We don't show a message. If things fail, you could only log a watchdog error.
Also sending a mail only makes sense if the interacting user is not the owner - such as a service provides a translation.
We also want to mention the job in the mail.
Also we need test coverage for this.
And as said, sending mails should be optional and we don't want to have TMGMT itself depend to courier. So we should make a separate module or check its presence. Also dunno about configurability of notifications: The site owner (or even each user?) should be able to enable / disable mail notifications. Is this configurability provided on courier level?
Comment #6
miro_dietikerEduard continued to work on this last week with more of a proof-of-concept implementation.
Architectural discussions are ongoing and important to clear before we can commit anything.
Please provide the link to the github repo here.
Comment #7
edurenye commentedThe module that extracts all the common functionality: https://github.com/edurenye/tmgmt_courier
The implementation for TMGMT: https://github.com/edurenye/tmgmt/pull/1
The implementation for another module (Monitoring): https://github.com/edurenye/monitoring/pull/1
Comment #8
miro_dietikerI provided a bunch of feedback to the TMGMT implementation on github.
Most importantly, we need a default recipient set (as identity) for each message by the trigger origin.
And then i figured out some tokens are missing and more notifications make sense.
Finally, the common base module should provide some basic test helpers... so testing a mail workflow is easy.