Last modified: 2014-10-31 13:39:29 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 T71740, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69740 - Categories don't react well to their members moving between special-cased namespaces (Category ↔ File ↔ (other))
Categories don't react well to their members moving between special-cased nam...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.24rc
All All
: Low normal (vote)
: 1.24.0 release
Assigned To: Bartosz Dziewoński
:
Depends on:
Blocks: 72661
  Show dependency treegraph
 
Reported: 2014-08-19 13:34 UTC by Bartosz Dziewoński
Modified: 2014-10-31 13:39 UTC (History)
3 users (show)

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


Attachments

Description Bartosz Dziewoński 2014-08-19 13:34:15 UTC
Categories don't react well to their members moving between special-cased namespaces (Category ↔ File ↔ (other)).

This was probably never noticed before Ic93616a5 because people rarely use categories that contain both files and pages. However, categories very often contain pages and sub-categories. (Also, no one in their right mind would move between File and other namespaces, while accidentally creating a category description page in a wrong namespace is not impossible.)

* On pl.wp, a user mistakenly created [[pl:Odmiany herbu Brodzic]],
  categorizing it under [[pl:Category:Herby szlacheckie]] (with sortkey
  'Brodzic'), then moved the page to [[pl:Category:Odmiany herbu Brodzic]].
* When you look at [[pl:Category:Herby szlacheckie]], the subcategory is
  not shown and the page claims there are 72 subcategories.
* Click "next 200" at the bottom. Our subcategory appears *first* on the list,
  and the heading order is messed up ('B', ' ', 'A', 'C', …). The page claims
  there are 73 subcategories now.
* Click "next 200" at the bottom again. Our subcategory disappears and all
  is well again.

It is worth noting that the last member on the first page of the category is 'Borch III', which sorts before 'Brodzic' (the sort key for the problematic subcategory).

I'm not sure exactly what happens, but it looks like the status of the category member as regular page vs subcategory is not consistent (it sorts like a page, but displays like subcategory?).
Comment 1 Gerrit Notification Bot 2014-09-06 15:17:39 UTC
Change 158876 had a related patch set uploaded by Bartosz Dziewoński:
Update categorylinks.cl_type when moving a page

https://gerrit.wikimedia.org/r/158876
Comment 2 Gerrit Notification Bot 2014-09-15 00:35:53 UTC
Change 158876 merged by jenkins-bot:
Update categorylinks.cl_type when moving a page

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

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


Navigation
Links