Last modified: 2012-09-04 13:17:48 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 T27095, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25095 - Special:Categories should also include the first relevant item when "from" is filled
Special:Categories should also include the first relevant item when "from" is...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: code-update-regression
: 15381 37469 38016 38525 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-08 10:55 UTC by Danny B.
Modified: 2012-09-04 13:17 UTC (History)
10 users (show)

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


Attachments

Description Danny B. 2010-09-08 10:55:24 UTC
Special:Categories/Foo should show:

Category:Foo
Category:Foo bar
Category:Foo baz
Category:Qux

but shows:

Category:Foo bar
Category:Foo baz
Category:Qux

while the Category:Foo is the last item of previous page.


----------

(adding "code-update-regression" keyword, because I'm pretty sure it used to work correctly before)
Comment 1 Derk-Jan Hartman 2012-03-02 20:17:18 UTC
this issue still exists btw. As a matter of fact, it seems worse....

http://en.wikipedia.org/w/index.php?title=Special:Categories/Foo&offset=Fontwell_Park_Racecourse

Clearly the list contains "Food Network", yet
http://en.wikipedia.org/w/index.php?title=Special:Categories/Food_Network
starts at "Food Network (Canada)"

Pressing "Previous 50" http://en.wikipedia.org/w/index.php?title=Special:Categories/Food_Network&dir=prev&offset=Food_Network_%28Canada%29

gives you a list that ALSO doesn't contain "Food Network". Thus the pager offset is making exact match offsets disappear altogether from the list :D
Comment 2 Max Semenik 2012-03-08 21:22:25 UTC
SELECT /* IndexPager::reallyDoQuery (CategoryPager) MaxSem */  cat_title,cat_pages  FROM category  WHERE (cat_pages > 0) AND (cat_title>'Foo')  ORDER BY cat_title LIMIT 51  

This doesn't look right, should be cat_title>='Foo', otherwise &from= and &offset= work the same way.

(In reply to comment #1)
> this issue still exists btw. As a matter of fact, it seems worse....
> 
> http://en.wikipedia.org/w/index.php?title=Special:Categories/Foo&offset=Fontwell_Park_Racecourse
> 
> Clearly the list contains "Food Network", yet
> http://en.wikipedia.org/w/index.php?title=Special:Categories/Food_Network
> starts at "Food Network (Canada)"
> 
> Pressing "Previous 50"
> http://en.wikipedia.org/w/index.php?title=Special:Categories/Food_Network&dir=prev&offset=Food_Network_%28Canada%29
> 
> gives you a list that ALSO doesn't contain "Food Network". Thus the pager
> offset is making exact match offsets disappear altogether from the list :D

Couldn't repro it locally.
Comment 3 Max Semenik 2012-03-08 22:52:39 UTC
Fixed in r113415.
Comment 4 Marcin Cieślak 2012-04-16 17:46:20 UTC
Unfortunately, the fix breaks paging in Special:Categories (bug 36019).
Comment 5 Alexandre Emsenhuber [IAlex] 2012-05-09 20:24:20 UTC
Another fix is pending review in Gerrit change #7086.
Comment 6 Alexandre Emsenhuber [IAlex] 2012-06-14 09:51:17 UTC
*** Bug 37469 has been marked as a duplicate of this bug. ***
Comment 7 Alexandre Emsenhuber [IAlex] 2012-06-29 18:46:17 UTC
*** Bug 38016 has been marked as a duplicate of this bug. ***
Comment 8 Alexandre Emsenhuber [IAlex] 2012-07-21 07:14:19 UTC
*** Bug 38525 has been marked as a duplicate of this bug. ***
Comment 9 Alexandre Emsenhuber [IAlex] 2012-08-02 11:33:34 UTC
The change is now merged.
Comment 10 db [inactive,noenotif] 2012-08-06 19:53:06 UTC
*** Bug 15381 has been marked as a duplicate of this bug. ***

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


Navigation
Links