Page MenuHomePhabricator

Page with less than 5,000 revisions can't be deleted
Closed, ResolvedPublic

Description

Trying to delete

https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Sandbox

gives an error

https://en.wikipedia.org/w/index.php?title=Wikipedia:AutoWikiBrowser/Sandbox&action=delete

while

https://en.wikipedia.org/w/index.php?title=Wikipedia:AutoWikiBrowser/Sandbox&action=info

shows Total number of edits: 3,254

which is less than 5,000.

Anything to do with the fact the page was deleted and restored in the past perhaps?


Version: 1.24rc
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=69562

Details

Reference
bz69556

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 3:30 AM
bzimport set Reference to bz69556.

Not an API bug. You're not even using the API there.

The situation here is that the action=delete check is using a fast estimate for the revision count instead of actually counting. It may be that it could instead share the cache from action=info; I'll leave that determination to people more familiar with performance.

hoo added a comment.Aug 14 2014, 6:38 PM

I have worked on this very briefly: https://gerrit.wikimedia.org/r/131264

But it needs more love.

gerritadmin wrote:

Change 131264 had a related patch set uploaded by Hoo man:
Don't estimate the revision count for page deletions

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

gerritadmin wrote:

Change 131264 merged by jenkins-bot:
Don't estimate the revision count for page deletions

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