RFE: Fetch translations from webhook notification

Description

Immediately update translations in Drupal when they are 100% complete, so that finished translations can be published as soon as they are ready.

Technical note: Zanata's webhook notification gives information on the individual document that is complete. We need a reasonably efficient way to figure out which translation jobs contain the complete document so that an update can be triggered on those jobs.

Activity

Show:

Former user 20 April 2018 at 00:23

We are closing all the old issues to have more clarity in our backlog for Zanata project. Feel free to re-open or leave a comment if you require our attention on your Jira.

Former user 1 November 2016 at 06:33

Will the new Manual Webhook implementation have any impact on this?

Former user 10 December 2015 at 00:53
Edited

Technical notes:

Webhooks for Zanata are configured in the project settings, as documented here: http://docs.zanata.org/en/release/user-guide/projects/project-settings/#webhooks

  • Zanata will make a HTTP POST to the URI configured in the project settings.

  • The Drupal plugin will need to define an endpoint that can be receive a POST and will respond to it. The response should be to trigger a translation update for all the translation jobs that have a matching docId and locale.

  • The Drupal plugin will need to display the URL for the endpoint so that the administrator can copy it to the project settings in Zanata. The translator configuration page would be a good place to show this (the same page where the server, project and version are configured).

The body of webhook post from Zanata is supposed to look something like this:

In the Drupal plugin, it should be possible to find the TMGMTJob instances that have matching locale and docId. I think EntityFieldQuery would work for this:

Bugzilla Migration 28 July 2015 at 23:14

David Mason commented:

Assigning to myself for research.

Not Applicable

Details

Assignee

Reporter

Labels

Components

Priority

More fields

Created 28 July 2015 at 23:14
Updated 20 April 2018 at 00:29
Resolved 20 April 2018 at 00:29