Page MenuHomePhabricator

Update to focus on categories
Open, MediumPublicFeature

Description was written in the time we didn't have proper access to the list of categories using the api. So we had to parse the page text for categories, but that didn't catch categories added by template. So it contains quite a bit of trickery to work around this problem.

Now we do have proper api access a proper implementation becomes possible:

  • Loop over templates to see if doesn't contain a template to skip (like nominated for deletion). This should include template redirects
  • Loop over the categories.
  • Check for each category if it's hidden
  • If you find a category that is not hidden, break
  • If you finish without finding a category that's not hidden -> tag it

It's should be written with a Class (instead of the different functions we have right now).

We probably want to add a bit of caching of the categories at so we don't have to look these up a gazillion times.

Version: core-(2.0)
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:24 AM
bzimport set Reference to bz66312.

Change 138453 had a related patch set uploaded by Multichill:
(bug 66312) Rewrite

Xqt triaged this task as Medium priority.Oct 30 2016, 11:52 AM
Multichill removed a project: Patch-For-Review.

This change is up for grabs. You could use as a basis

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:23 PM