Page MenuHomePhabricator

translatewiki.net API: Attach suggestions to message
Closed, DeclinedPublic

Description

Author: orsagi

Description:
using action=query , list=messagecollection might be useful to be able to request the message suggestions attached to them by mcprop parameter.

the current way using action=translationaids is in-efficient in case of loading suggestions for many messages - since it requires HTTP request for each message, thus leads to great overheads.


Version: unspecified
Severity: enhancement

Details

Reference
bz47250

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 1:38 AM
bzimport set Reference to bz47250.
bzimport added a subscriber: Unknown Object (MLST).

This is by design. Fetching suggestions for list=messagecollection would be too slow.

orsagi wrote:

It shouldn't be supplied by default, but upon explicit request of mcprop=suggestions or so.

it is way much slower to serve many "action=translationaids" request.

I think this will be way too expensive, optional or not. Imagine a batch of 100 messages, and suggestions from translation memory, two helper languages, and two machine translation engines. For the 100 messages, that's 3 external requests per message, 300 in total.

Leaving final verdict to Niklas, but especially becaus of the external dependencies, this is unwanted.

The way we solved this in the UI, is by preloading the next message's data. Doesn't really work for the proofreading use case you are working on. So there is most likely a waiting time when a user wants to edit a translation instead of approve it. If you have a list of translatable messages, you can use the preload system.