Page MenuHomePhabricator

Weird behavior with dynamically generated categories
Closed, DeclinedPublic

Description

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.
  1. 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]]


Version: 1.21.x
Severity: normal

Details

Reference
bz44060

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:21 AM
bzimport set Reference to bz44060.
bzimport added a subscriber: Unknown Object (MLST).

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

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.

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)