Re: Badges for translations contribution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 02, 2015 at 04:03:22PM +1000, Alex Eng wrote:
> Hi
> 
> I'm Alex from Zanata team.
> 
> We've recently discussed on getting Zanata webhook to trigger event
> for Fedora badges.
> Just wondering who is the best person to talk to?
> 
> 1) What sort of details does Zanata need to include in the event?
> 2) Any test instance which we can test the event on?

Hi Alex,

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.

Beyond that, here are some things which would be nice:

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

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

Cheers, and thanks for the ping on this!
-Ralph


[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1213630
[2] - https://github.com/fedora-infra/zanata2fedmsg
[3] - https://bugzilla.redhat.com/show_bug.cgi?id=1122776

Attachment: signature.asc
Description: PGP signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux