Page MenuHomePhabricator

Create a category that will include pages with outdated graphs
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):
After switching to Vega 5, there will be a lot of graphs that are written in the old Vega 2 syntax. Over time, we will need to completely abandon it and therefore need a category to work with, as we did with Vega 1.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
If I want to fix the syntax in graphs, I need to know where to find them.

Benefits (why should this be implemented?):
Simplification of work.

Event Timeline

Jdlrobson triaged this task as Medium priority.Apr 24 2023, 11:57 PM

Change 912410 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/Graph@master] Fix categorization of graphs with obsolete Vega versions

https://gerrit.wikimedia.org/r/912410

Tgr added subscribers: ihurbain, Tgr.

Swiping this since I was already looking into it.

Change 912413 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/Graph@master] Add tests for outdated graph categorization

https://gerrit.wikimedia.org/r/912413

Change 912410 merged by jenkins-bot:

[mediawiki/extensions/Graph@master] Fix categorization of graphs with obsolete Vega versions

https://gerrit.wikimedia.org/r/912410

Jdlrobson subscribed.

Graphs will appear in the category MediaWiki:graph-obsolete-category - by default this is [[Category:Pages with obsolete Vega 1.0 graphs]] so projects may want to customize this and set redirects to make this less confusing. @Tgr I assume renaming the default for graph-obsolete-category could cause more disruption than necessary, right?

Change 912413 merged by jenkins-bot:

[mediawiki/extensions/Graph@master] Add tests for outdated graph categorization

https://gerrit.wikimedia.org/r/912413

@Tgr I assume renaming the default for graph-obsolete-category could cause more disruption than necessary, right?

I did change the defaults. Translators will have to update non-English versions though manually. I wasn't sure if that's a good idea - we could use a new message, then it would be English on non-English wikis, or keep the current one, then it will say in the local language "the graph is Vega 1, you should update it to Vega 2" instead of 2/5 until updated.

FWIW the message is translated in 53 languages and there are no on-wiki overrides.

Change 912772 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/Graph@master] Update tracking category name for obsolate spec

https://gerrit.wikimedia.org/r/912772

I did change the defaults

...but forgot to add that to the commit, apparently.

Change 912772 merged by jenkins-bot:

[mediawiki/extensions/Graph@master] Update tracking category name for obsolate spec

https://gerrit.wikimedia.org/r/912772