Page MenuHomePhabricator

getVersionHistory does not follow total parameter
Closed, ResolvedPublic

Description

When a version history is already loaded, decreasing the total parameter does not care. It already returns the old amount of values.

import pwb
import pywikibot as py
s = py.Site()
p = py.Page(s, 'user:xqt/Test')
x = p.getVersionHistory(total=5)
len(x)

5

x = p.getVersionHistory(total=2)

len(x)

5

The same for getVersionHistoryTable and fullVersionHistory method


Version: core-(2.0)
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=72344

Details

Reference
bz64188

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:23 AM
bzimport set Reference to bz64188.

Change 168503 had a related patch set uploaded by Mpaa:
Bug 64188 - getVersionHistory does not follow total parameter

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

Change 168503 merged by jenkins-bot:
Bug 64188 - getVersionHistory does not follow total parameter

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