Page MenuHomePhabricator

"Category:Pages where expansion depth is exceeded" is not considered "hidden" by the API in MediaWiki 1.37.1
Closed, InvalidPublicBUG REPORT

Description

Check this query: https://wiki.archlinux.org/api.php?action=query&prop=categories&titles=ArchWiki:About&clshow=!hidden

{
    "batchcomplete": "",
    "query": {
        "pages": {
            "943": {
                "pageid": 943,
                "ns": 4,
                "title": "ArchWiki:About",
                "categories": [
                    {
                        "ns": 14,
                        "title": "Category:ArchWiki"
                    },
                    {
                        "ns": 14,
                        "title": "Category:Pages where expansion depth is exceeded"
                    }
                ]
            }
        }
    }
}

The API returned Category:Pages where expansion depth is exceeded even though clshow=!hidden is given in the query string.

What is also weird about this category is that its page indicates there are many category members, but when visiting any of the pages, it is not listed among the categories of the page (not even among the hidden categories when the user logs in). Is the category hidden even from the hidden categories?

None of this was happening with MediaWiki 1.36.

Event Timeline

Reedy renamed this task from Category:Pages where expansion depth is exceeded in MediaWiki 1.37.1 is not considered "hidden" by the API to "Category:Pages where expansion depth is exceeded" is not considered "hidden" by the API in MediaWiki 1.37.1.Jan 6 2022, 8:17 PM
Reedy updated the task description. (Show Details)
Umherirrender added a subscriber: Umherirrender.

The category page does not exists and only categories with a page could be marked as hidden by adding _ _HIDDENCAT_ _ on that page.
According to a fresh parse the category is no longer added to the page: https://wiki.archlinux.org/api.php?action=parse&page=ArchWiki:About&prop=categories

The update of category membership is often part of the job queue. Try maintenance/runJobs.php to run open jobs and config it - https://www.mediawiki.org/wiki/Manual:Job_queue
According to the release notes there are no changes to the job queue handling.

https://wiki.archlinux.org/title/Category:Pages_where_expansion_depth_is_exceeded?action=info
https://wiki.archlinux.org/title/Special:TrackingCategories