Page MenuHomePhabricator

Browse prototype lists not showing article snippets
Closed, ResolvedPublic

Description

Looks like the browse prototype gather lists aren't showing article snippets for any articles beyond the first.

For example, see: http://en.m.wikipedia.beta.wmflabs.org/wiki/Special:TopicTag/American_TV_dramas

or http://en.m.wikipedia.beta.wmflabs.org/wiki/Special:TopicTag/San_Francisco_landmarks

Event Timeline

JKatzWMF raised the priority of this task from to Needs Triage.
JKatzWMF updated the task description. (Show Details)
JKatzWMF added a subscriber: JKatzWMF.

Looks like the TextExtracts extension cannot handle multiple titles [1]. As you can see from the URL there is no extracts for the page 'Pen'.

[1] http://en.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=175&titles=Book|Pen

Confusingly you have to apply a limit since the default is 1 (I complained to @MaxSem about this a while ago but he didn't seem to understand why this was a problem)
http://en.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=175&titles=Book|Pen&exlimit=2
You'll see in the response "exlimit was too large for a whole article extracts request, lowered to 1"
We use exintro to get round this
http://en.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=175&titles=Book|Pen&exlimit=2&exintro

Change 213483 had a related patch set uploaded (by Phuedx):
Show article snippets for Browse article

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

Change 213483 merged by jenkins-bot:
Show article snippets for Browse article

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