Page MenuHomePhabricator

ApiQueryPrefixSearch returns limit+1 results in generator mode
Closed, ResolvedPublic

Description

This is easily seen with https://test.wikipedia.org/w/api.php?action=query&generator=prefixsearch&gpssearch=A&gpslimit=1 returning two pages.

It also doesn't ever output a continuation parameter.

Event Timeline

Anomie claimed this task.
Anomie raised the priority of this task from to Needs Triage.
Anomie updated the task description. (Show Details)
Anomie subscribed.

Change 194330 had a related patch set uploaded (by Anomie):
API: Properly handle limit and continuation for generator=prefixsearch

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

Change 194330 merged by jenkins-bot:
API: Properly handle limit and continuation for generator=prefixsearch

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

Ricordisamoa removed a project: Patch-For-Review.
Ricordisamoa set Security to None.

It looks like the branch hasn't been cut yet, so this should be deployed to WMF wikis with 1.25wmf20. See https://www.mediawiki.org/wiki/MediaWiki_1.25/Roadmap for the schedule.