One thing we were waiting was the release of zanata-server-3.8. The
3.7.3 version deployed at https://fedora.zanata.org/ has the webhook
feature in place, but it doesn't cryptographically sign the webhook
POST requests[1]. We have a mediator service[2] (written some time
ago, not yet deployed) to receive those POSTS and republish them to
our fedmsg message bus. Our badges awarder listens to that bus and can
award badges in response to that. That zanata2fedmsg bridge will need
to be updated to verify the signature header once its available.
Deployment of 3.8 is in progress now. Hopefully before Christmas.
- zanata currently only sends events when translations for a document
reach the 100%-completed milestone. It would be nice if we could
have more events along the way (like 25%, or 50%, or even if we
received a notification every time a new change in translations were
uploaded, that would be great). See the original ticket for some
discussion[3].
Agree. Let me follow up for this.
- The message payload only indicates which document reached 100%. We
will then have to query the zanata REST api again from our side in
order to figure out which translators did the translation -- so we
can award them badges. We could skip this extra query if zanata
included the usernames of the translators in the original webhook
POST.
I think we should have separate event for documents translation reaching a milestone and contribution badges.
For contribution badges, perhaps we can send out webhook event after each translation being saved (not sure if the zanata2fedmsg bridge can handle the load),
or queue it up in Zanata and send out every X minutes for that user. Will need you input on this.