[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

Implement get language links endpoint
Closed, ResolvedPublic2 Estimated Story Points

Description

Description
This endpoint should return a list of all available alternative language versions for a given page as outlined in T230846

Requirements

  • Implement endpoint described by T230846
  • Add integration test covering expected behaviour - delayed until T236680 is deployed
  • Add documentation for endpoint (reviewed via email)

Event Timeline

WDoranWMF created this task.

The subtask relationship of this task is wrong.

Change 548860 had a related patch set uploaded (by Will Doran; owner: Ppchelko):
[mediawiki/core@master] REST: Introduce language links endpoint.

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

Change 563298 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/core@master] Add integration tests for /page/{title}/links/language endpoint.

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

So, the endpoint is live; I've validated that it's working correctly. Please close this when the tests are merged.

Add integration test covering expected behaviour - delayed until T236680 is deployed

A full end-to-end test based on a vanilla install is not possible for this feature, because per default, no language link prefixes are configured (a vanilla install has no sibling projects). An end-to-end test could be written against our live config, but as far as I know, we don't have a setup for that in CI yet. We also can't yet run end-to-end tests against beta, because this requires shared secrets for login.

The best we can do right now is a phpunit-based integration test, like the ones we traditionally write for the action API.

Change 580098 had a related patch set uploaded (by Daniel Kinzler; owner: Daniel Kinzler):
[mediawiki/core@master] CompareHandler: add phpunit integration test

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

daniel set the point value for this task to 2.Mar 25 2020, 6:49 PM

Change 580098 merged by jenkins-bot:
[mediawiki/core@master] LanguageLinksHandler: add phpunit integration test

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

Change 563298 abandoned by Ppchelko:
Add integration tests for /page/{title}/links/language endpoint.

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