Page MenuHomePhabricator

Add a special page to keep track of variables
Open, LowestPublic60 Story PointsFeature

Description

A nice-to-have addition to the features of Variables would be a special page that keeps track of all variable names that are in use in a given wiki and provides information about how often they are used. Additionaly, it could provide a list of pages where variables are explicity defined. This data should be cached similar to Core special pages providing lists.

Event Timeline

MGChecker created this task.Apr 8 2018, 4:55 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 8 2018, 4:55 PM
MGChecker triaged this task as Lowest priority.Aug 14 2018, 5:16 AM

Even though this is a useful, really interesting task, it's highly unprobable that I'll be able to work at this in the mid-term.

However, if you want to work on this task, feel free to claim it and raise the priority if you want to.

Whoever works on this needs to make sure that the functionality can handle potentially hundreds of different named variables (and potentially thousands of variable uses) on a single page, and thousands of different named variables across the wiki.

This would be implemented partially by T197493, if it's accepted. You could use #vardefine and #vardefineecho tags to track where Variables are defined. However, there are some caveats:

  • You can't find a variable with a ceratin name this way. However, we could add further page_props information to allow this.
  • Transcluded variable definitions probably wouldn't be excluded.
  • You could create an edge case too large for page_props (It has a size of 32 or 64 GB if I remember correctly.)
  • There is no simple way to get a list of every variable in use, except for iterating over all usages of #vardefine(echo).
MGChecker set the point value for this task to 60.Oct 25 2018, 12:10 AM
MGChecker changed the subtype of this task from "Task" to "Feature Request".Mar 1 2019, 11:35 PM