Webhook event for translation updated

Description

New webhook event whenever a translation is being updated by user.

https://fedorahosted.org/G11N/ticket/19

Activity

Show:
Sean Flanigan
February 29, 2016, 7:16 AM

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.

Alex Eng
May 23, 2016, 4:52 AM

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"}

Sean Flanigan
May 23, 2016, 5:11 AM
Edited

(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.

Ready for Release

Assignee

Alex Eng

Reporter

Alex Eng

Labels

Tested Version/s

None

Time tracking

0m

Time remaining

0m

Sprint

None

Fix versions

Priority

unspecified
Configure