Re: Badges for translations contribution

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

 



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.
 


---------------------------------------------

Alex Eng 
Globalisation Tools Engineering
DID: +61 3514 8262 
Mobile: +614 2335 3457 

Red Hat, Asia-Pacific Pty Ltd 
Level 1, 193 North Quay 
Brisbane 4000 
Office: +61 7 3514 8100 
Fax: +61 7 3514 8199 
Website: www.redhat.com


On Thu, Dec 3, 2015 at 3:32 AM, Ralph Bean <rbean@xxxxxxxxxx> wrote:
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

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


_______________________________________________
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