Yurik has uploaded a new change for review.
https://gerrit.wikimedia.org/r/258218
Change subject: Add tracking category for obsolete Vega1.0 graphs
......................................................................
Add tracking category for obsolete Vega1.0 graphs
Marks all pages with vega 1.0 graphs with
a tracking category.
Change-Id: I8d3a7a063b415fb0d19f2bd3192436676662836e
---
M Graph.body.php
M extension.json
M i18n/en.json
M i18n/qqq.json
4 files changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Graph
refs/changes/18/258218/1
diff --git a/Graph.body.php b/Graph.body.php
index f50017f..12d0545 100644
--- a/Graph.body.php
+++ b/Graph.body.php
@@ -51,6 +51,9 @@
if ( $output->getExtensionData( 'graph_specs_broken' ) ) {
$output->addTrackingCategory( 'graph-broken-category',
$title );
}
+ if ( $output->getExtensionData( 'graph_specs_obsolete' ) ) {
+ $output->addTrackingCategory(
'graph-obsolete-category', $title );
+ }
$specs = $output->getExtensionData( 'graph_specs' );
if ( $specs !== null ) {
@@ -142,6 +145,8 @@
}
if ( $useVega2 ) {
$parserOutput->setExtensionData( 'graph_vega2', true );
+ } else {
+ $parserOutput->setExtensionData(
'graph_specs_obsolete', true );
}
// Calculate hash and store graph definition in graph_specs
extension data
diff --git a/extension.json b/extension.json
index 867e410..fdc5e70 100644
--- a/extension.json
+++ b/extension.json
@@ -122,6 +122,7 @@
},
"TrackingCategories": [
"graph-tracking-category",
+ "graph-obsolete-category",
"graph-broken-category"
],
"manifest_version": 1
diff --git a/i18n/en.json b/i18n/en.json
index 06ca3fd..7e50551 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -11,6 +11,8 @@
"graph-tracking-category-desc": "The page includes a
<code><nowiki><graph></nowiki></code> tag.",
"graph-broken-category": "Pages with broken graphs",
"graph-broken-category-desc": "The page includes a
<code><nowiki><graph></nowiki></code> tag with invalid usage.",
+ "graph-obsolete-category": "Pages with obsolete Vega 1.0 graphs",
+ "graph-obsolete-category-desc": "The page includes a
<code><nowiki><graph></nowiki></code> tag that should be updated to version 2.",
"apihelp-graph-description": "Access graph tag functionality.",
"apihelp-graph-example": "Get the graph JSON by hash and title",
"apihelp-graph-param-hash": "Hash value of the graph",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 767944a..104f36d 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -13,6 +13,8 @@
"graph-tracking-category-desc": "Description on
[[Special:TrackingCategories]] for the {{msg-mw|graph-tracking-category}}
tracking category.",
"graph-broken-category": "Name of the tracking category",
"graph-broken-category-desc": "Description on
[[Special:TrackingCategories]] for the {{msg-mw|graph-broken-category}}
tracking category.",
+ "graph-obsolete-category": "Name of the tracking category",
+ "graph-obsolete-category-desc": "Description on
[[Special:TrackingCategories]] for the {{msg-mw|graph-obsolete-category}}
tracking category.",
"apihelp-graph-description": "{{doc-apihelp-description|graph}}",
"apihelp-graph-example": "{{doc-apihelp-example|graph}}",
"apihelp-graph-param-hash": "{{doc-apihelp-param|graph|hash}}",
--
To view, visit https://gerrit.wikimedia.org/r/258218
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d3a7a063b415fb0d19f2bd3192436676662836e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: wmf/1.27.0-wmf.8
Gerrit-Owner: Yurik <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits