Last modified: 2014-10-29 06:24:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66188, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64188 - getVersionHistory does not follow total parameter
getVersionHistory does not follow total parameter
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
All All
: High major
: ---
Assigned To: xqt
Depends on:
Blocks: pwb20
  Show dependency treegraph
Reported: 2014-04-21 15:37 UTC by xqt
Modified: 2014-10-29 06:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description xqt 2014-04-21 15:37:17 UTC
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)
>>> x = p.getVersionHistory(total=2)
>>> len(x)

The same for getVersionHistoryTable and fullVersionHistory method
Comment 1 Gerrit Notification Bot 2014-10-23 22:37:04 UTC
Change 168503 had a related patch set uploaded by Mpaa:
Bug 64188 - getVersionHistory does not follow total parameter
Comment 2 Gerrit Notification Bot 2014-10-27 21:35:08 UTC
Change 168503 merged by jenkins-bot:
Bug 64188 - getVersionHistory does not follow total parameter
Comment 3 Sorawee Porncharoenwase 2014-10-29 06:24:25 UTC

Note You need to log in before you can comment on or make changes to this bug.