Page MenuHomePhabricator

ApiQueryContentTranslation does not respect from and to params if sourcetitle param not present
Closed, ResolvedPublic1 Estimated Story Points

Description

For T111028, the recommend tool need a seed article for the current user. When I tried the query api to find the last translation of the user to use as source article, I am getting result in wrong languages

This api: action=query&format=jsonfm&list=contenttranslation&from=en&to=es&limit=1 does not give the last translation betwen en and es for the user. Instead it gives the last translation between any language.

Event Timeline

santhosh raised the priority of this task from to Medium.
santhosh updated the task description. (Show Details)
santhosh subscribed.

Change 251015 had a related patch set uploaded (by Santhosh):
Fix: ApiQueryContentTranslation does not respect from and to params

https://gerrit.wikimedia.org/r/251015

santhosh moved this task from Backlog to In Review on the LE-CX7-Sprint 3 board.
santhosh edited a custom field.

Change 251015 merged by jenkins-bot:
Fix: ApiQueryContentTranslation does not respect from and to params

https://gerrit.wikimedia.org/r/251015

Arrbee subscribed.