Page MenuHomePhabricator

wgCategories not populated on wgAction = edit
Open, MediumPublic

Description

wgCategories is not populated on wgAction = edit

It is on view or submit, should be on edit as well.


Version: 1.21.x
Severity: normal

Details

Reference
bz45033

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:29 AM
bzimport set Reference to bz45033.
bzimport added a subscriber: Unknown Object (MLST).

As it actually disrupts the consistency of the information about given page for gadgets, so they can't work properly on editing page, I'm increasing the importance back to normal.

But on submit it contains only the categories from the section edited and not from the whole page.

That is the same problem as with the "templated used" section. On edit section this is also not added, because you have to parse the wikitext to get the templates. This is done on preview so the templates are shown.

In case it adds any motivation, [[Wikipedia:Twinkle]] would like to use this information to provide a talkback opt-out capability for user talk pages.

For now I will implement the opt-out using a lazy-loading API call when wgCategories is empty, but it would be nice to just be able to use wgCategories all the time and not have to query the API at all.

matmarex set Security to None.
matmarex removed a subscriber: Unknown Object (MLST).
This comment was removed by Kenrick95.

Can confirm that this is still the case