Last modified: 2010-05-30 23:45:55 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 T25712, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23712 - Category:Self-published work at Commons is not hidden anymore
Category:Self-published work at Commons is not hidden anymore
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-30 10:41 UTC by Maarten Dammers
Modified: 2010-05-30 23:45 UTC (History)
5 users (show)

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


Attachments

Description Maarten Dammers 2010-05-30 10:41:26 UTC
With almost 2.5M items http://commons.wikimedia.org/wiki/Category:Self-published_work is the biggest category at Commons. The category was hidden but vandalized in which the __HIDDENCAT__ was removed. This edit was reverted (and full protection was added), but the category doesn't become hidden.

Query at the toolserver:

mysql> select * from category WHERE cat_title='Self-published_work' limit 1;
+--------+---------------------+-----------+-------------+-----------+------------+
| cat_id | cat_title           | cat_pages | cat_subcats | cat_files | cat_hidden |
+--------+---------------------+-----------+-------------+-----------+------------+
|     31 | Self-published_work |   2429973 |          26 |   2429892 |          0 | 
+--------+---------------------+-----------+-------------+-----------+------------+

So it looks like this row doesn't get updated (some timeout?). 
As a workaround someone could set cat_hidden to 1. This would solve the problem for Commons.
Comment 1 Bawolff (Brian Wolff) 2010-05-30 12:46:27 UTC
Potentially its just waiting on the job queue, and will be updated eventually.

It should also be noted, that the hidden cat property comes from the page_props table, not the category table. cat_hidden in the category table is always 0.
Comment 2 Platonides 2010-05-30 13:21:24 UTC
Why would addition of __HIDDENCAT__ go throught the job queue?
It was added directly on the page, not via a change on a template.
Comment 3 Bawolff (Brian Wolff) 2010-05-30 13:30:30 UTC
That was just a guess based on the fact it didn't happen, and __HIDDENCAT__ would invalidate the cache of roughly 2.5 million pages. I don't know all that much about the internal workings of the job queue, so it is just guess, which I probably should of made clearer in my comment. Cheers.
Comment 4 Maarten Dammers 2010-05-30 13:41:10 UTC
Oh right, it was stored in another table

mysql> SELECT page_id, page_title FROM page WHERE page_namespace=14 AND page_title='Self-published_work';
+---------+---------------------+
| page_id | page_title          |
+---------+---------------------+
|  175266 | Self-published_work | 
+---------+---------------------+
1 row in set (0.01 sec)

mysql> select * FROM page_props WHERE pp_page=175266;
Empty set (0.00 sec

So it looks like it never ended up in the page_props table.
Comment 5 Roan Kattouw 2010-05-30 19:16:15 UTC
I manually inserted the row in the page_props table, according to Maarten the category is hidden properly now. It seems saving the category page times out before the hiddencat prop is saved.
Comment 6 p858snake 2010-05-30 23:45:55 UTC
RESOLVED FIXED based on Roan's comment. The fact that it's not saving is probably best for another bug report.

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


Navigation
Links