New webhook event whenever a translation is being updated by user.
If this is really about connecting to Fedora Infrastructure Message Bus (which uses ZeroMQ, I believe), and if there really needs to be an event for every single translation change, I think we need to look at using something more efficient than webhooks, perhaps JeroMQ JMS or straight JeroMQ.
However, I think we may need to look at the idea of batching updates, since generating and sending events so frequently will be very costly however efficient the I/O mechanism is.
Output:
{"user":{"username":"aeng","name":"Alex Eng","imageUrl":"//www.gravatar.com/avatar/c7fa4315c62b48925680bed7e9788a47?d=mm&r=g&s=115","languageTeams":["Chinese (China)","Akan","Chinese (Taiwan)"]},"project":"test","version":"1.0","docId":"doc1-test","locale":"af","wordDeltasByState":{"Translated":10,"New":-10},"type":"DocumentStatsEvent"}
(Reformatted 's sample json):
The JSON looks pretty good, but perhaps we should leave out the user's gravatar and/or the user's language teams, since they're not really related to the DocStatsEvent. Just the username might be enough, perhaps even without the user's full name.