Last modified: 2013-01-18 04:46:59 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 T46060, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44060 - Weird behavior with dynamically generated categories
Weird behavior with dynamically generated categories
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.21.x
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-17 09:15 UTC by Al-Scandar Solstag
Modified: 2013-01-18 04:46 UTC (History)
2 users (show)

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


Attachments

Description Al-Scandar Solstag 2013-01-17 09:15:09 UTC
Ni!

This page has a template which includes a category in it:

http://pt.wikiversity.org/wiki/Agenda_Verde/Terra_Madre_Day_2012

The included category is computed and has changed as a result of changes in the template functions. As a result, the category displayed on the page itself appears to have changed accordingly.

However, when we look at the category pages, that page still shows up as if the category had not changed, instead of disappearing from the first and appearing on the second:

http://pt.wikiversity.org/wiki/Categoria:Evento_atual

http://pt.wikiversity.org/wiki/Categoria:Evento_passado

I know I'm doing a bit of a template trick there, however...

1) A page should not display a category it doesn't belong to, and should not belong to a category it doesn't display.

2) Template tricks are supposed to work so we can do awesome stuff =)

In this case, I programmed a self-updating super easy to use wiki agenda for study groups at Wikiversity, which unfortunately doesn't work because of this bug. =(

I suspect that if I make some change to the page and save it, the category will be properly updated. But that doesn't solve either of points 1 or 2.

Thanks!

Iske [[User:Solstag]]
Comment 1 Bawolff (Brian Wolff) 2013-01-17 12:42:42 UTC
Category membership is only updated on link updates (edits, null edits, template edits, purging with api with fotcelinkupdates option). You cannot use template trickery to change the actuak categories unless you are ok with much delayed updates.

Closing wontfix as I don't think this is likely to change
Comment 2 Al-Scandar Solstag 2013-01-18 04:07:02 UTC
Thank you Brian, but why can't this be fixed?

Why can't a page have its category membership updated upon a purge, in case it is detected that the categories it belongs to have changed upon purging?

I don't see why this should be "unlikely to change".

[Ni!]'s

q.
Comment 3 Bawolff (Brian Wolff) 2013-01-18 04:46:59 UTC
I suppose some of this is just because its the way things have always been done. Im not 100% sure of the exact reasoning for this. 

Part of it is probably that pages get rerendered quite frequently and in an unpredictable manner. If categorylinks were updated on every page parse it would be possible to construct a page that changed its category membership on every (logged in) page view which would probably be bad. Additionally the vast majority of pages do not have their categories change unless their page text has changed.

Terminology note: having categories update from purge requests (and not general page render as suggesyed in comment 0) is a bit more likely to happen (although still not something I would probably commit)

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


Navigation
Links