Nuria has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/348990 )

Change subject: Add support for monthly pageviews in metrics-by-project
......................................................................


Add support for monthly pageviews in metrics-by-project

Bug: T75331
Change-Id: If5e42bd29f0b25b531c5de1e37f39c65ae4ba182
---
M src/app/config.js
1 file changed, 22 insertions(+), 19 deletions(-)

Approvals:
  Nuria: Verified; Looks good to me, approved



diff --git a/src/app/config.js b/src/app/config.js
index 1b4cfb1..3c07f9e 100644
--- a/src/app/config.js
+++ b/src/app/config.js
@@ -26,6 +26,26 @@
         dataStart: '20160101'
     };
 
+    var pageviewsConfig = {
+        endpoint: 'getAggregatedPageviews',
+        valueField: 'views',
+        dateFormat: {
+            'hourly': 'YYYYMMDDHH',
+            'daily': 'YYYYMMDD00',
+            'monthly': 'YYYYMM0100'
+        },
+        // Api knows how to translate from general breakdown
+        // labels to api semantics to retrieve data.
+        breakdownOptions: {
+            'All': 'all-access',
+            'Desktop site': 'desktop',
+            'Mobile site': 'mobile-web',
+            'Mobile App': 'mobile-app'
+        },
+        breakdownParameter: 'access',
+        dataStart: '2015010100'
+    };
+
     return {
 
         // indicates which mediawiki host and pages contain the configuration
@@ -51,25 +71,8 @@
         },
 
         aqsApi: {
-            'Pageviews': {
-                endpoint: 'getAggregatedPageviews',
-                valueField: 'views',
-                dateFormat: {
-                    'hourly': 'YYYYMMDDHH',
-                    'daily': 'YYYYMMDD00',
-                    'monthly': 'YYYYMM0100'
-                },
-                // Api knows how to translate from general breakdown
-                // labels to api semantics to retrieve data.
-                breakdownOptions: {
-                    'All': 'all-access',
-                    'Desktop site': 'desktop',
-                    'Mobile site': 'mobile-web',
-                    'Mobile App': 'mobile-app'
-                },
-                breakdownParameter: 'access',
-                dataStart: '2015010100'
-            },
+            'Pageviews': pageviewsConfig,
+            'MonthlyPageviews': pageviewsConfig,
             'LegacyPagecounts': {
                 endpoint: 'getAggregatedLegacyPagecounts',
                 valueField: 'count',

-- 
To view, visit https://gerrit.wikimedia.org/r/348990
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If5e42bd29f0b25b531c5de1e37f39c65ae4ba182
Gerrit-PatchSet: 2
Gerrit-Project: analytics/dashiki
Gerrit-Branch: master
Gerrit-Owner: Mforns <[email protected]>
Gerrit-Reviewer: Mforns <[email protected]>
Gerrit-Reviewer: Nuria <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to