Page MenuHomePhabricator

Provide additional Linter statistics about template-generated issues
Open, MediumPublic

Description

Sometimes, a small number of templates are responsible for a large number of individual linter issues that are reported by Linter. In order to enable editors to not get overwhelmed by the counts, it might be useful to provide additional summary statistics:

  • How many linter issues in a category come from templates, and from top-level page itself? This statistic gives a quick scale of the effort involved.
  • For those pages with template-generated linter issues, some sort of ordered listing of templates by most # of issues so that editors can address those first.

Event Timeline

ssastry created this task.Jul 17 2017, 7:27 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 17 2017, 7:27 PM
ssastry triaged this task as Medium priority.Jul 17 2017, 7:28 PM

Looks like this is a bit involved since the linter db schema stuffs all information in the linter_params json blob. We didn't think of this use case when we were developing the schema.

<legoktm> we'd need to do a schema change and add a new column for it, and then index that column

Anyway, so this won't happen right away, but we will get this done.

He7d3r added a subscriber: He7d3r.Dec 28 2017, 1:02 PM

On ptwiki, I prioritized the list of "tidy-font-bug" by starting with the most transcluded templates containing errors:
https://quarry.wmflabs.org/query/23521
Something like that could be useful for others too..

On ptwiki, I prioritized the list of "tidy-font-bug" by starting with the most transcluded templates containing errors:
https://quarry.wmflabs.org/query/23521
Something like that could be useful for others too..

Thanks, He7d3r. How about adding a line about it at https://www.mediawiki.org/wiki/Help:Extension:Linter/tidy-font-bug ?

This would be a useful addition, if it is possible. I have fixed a few thousand pages with Linter errors, including many transcluded pages, on en.WP, and here are some things to consider:

  • Sometimes a template is listed as having a Linter error because there is a Linter error in the text of its documentation, and the template transcludes the documentation. Since the documentation is noincluded, when the template is transcluded in another page, that page may not have an error.
  • Conversely, a template may produce Linter errors ONLY when it is transcluded, due to things like if statements and processing of parameters.
  • Some pages on the Linter error lists show a template that is allegedly the source of the Linter error, but now that almost all template Linter errors on en.WP have been fixed, the error is more likely to be present in the wikicode in the template's transclusion on the listed page itself, not something that can be fixed inside the template's code in Template space.
  • Many transcluded pages do not live in Template space. On en.WP, userboxes often live in the User space.