Page MenuHomePhabricator

Start using the `page/related` REST endpoint instead of `morelike` query.
Closed, ResolvedPublic3 Estimated Story Points

Description

The new endpoint that returns "suggested" titles is up and running:

https://en.wikipedia.org/api/rest_v1/page/related/Obama

This can replace our current API query that we use for "Read more" items at the bottom of articles, as well as "Because you read" items in the Feed.

The above endpoint currently returns up to 5 items, but T199458 will increase the limit to 20.

API document: https://en.wikipedia.org/api/rest_v1/#!/Page_content/getRelatedPages

QA steps

A. in article page

  1. Open the article: United_States
  2. Go to the bottom section Read more of the article, and make sure the related articles are shown. (e.g. California)

B. in Explore feed

  1. Open the article: United_States
  2. Stay in the article at least 1 minute.
  3. Back to the Explore feed page to find the Because you read card that relates to United_States
  4. Check the lists in the card has related articles. (e.g. California, Los Angeles)

C. in different languages

  1. Repeat the A and B steps in different languages.

Event Timeline

Change 454440 had a related patch set uploaded (by Cooltey; owner: Cooltey):
[apps/android/wikipedia@master] [WIP] Related page REST endpoint integration

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

Change 454440 merged by jenkins-bot:
[apps/android/wikipedia@master] Related page REST endpoint integration

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

@cooltey is there any specific to check here (like test steps). I've been looking at the read more section on a bunch of articles and tapping through. Everything seems to be working.

@ABorbaWMF
Yes, I've updated the test steps, please let me know if you have any question.