community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864361 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js
Date Sun, 04 Aug 2019 06:54:23 GMT
Author: humbedooh
Date: Sun Aug  4 06:54:23 2019
New Revision: 1864361

URL: http://svn.apache.org/viewvc?rev=1864361&view=rev
Log:
disregard commits ML stats (we already count commits later on)

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864361&r1=1864360&r2=1864361&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Sun Aug  4 06:54:23
2019
@@ -201,6 +201,9 @@ function health_tips(data) {
         let mldata = data.delivery[project][ml];
         let a = ml.split('-', 2);
         ml = "%s@%s.apache.org".format(a[1], a[0]);
+        if (a[1].match(/commits|cvs/) { // we already count commits, so...
+          continue;
+        }
         let pct_change =Math.floor( 100 * ( (mldata.quarterly[0] - mldata.quarterly[1]) /
(mldata.quarterly[1]*1.0) ));
         let pct_change_txt = "%u%".format(Math.abs(pct_change));
         if (isNaN(pct_change) || !isFinite(pct_change)) {

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864361&r1=1864360&r2=1864361&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sun Aug  4 06:54:23 2019
@@ -1373,6 +1373,9 @@ function health_tips(data) {
         let mldata = data.delivery[project][ml];
         let a = ml.split('-', 2);
         ml = "%s@%s.apache.org".format(a[1], a[0]);
+        if (a[1].match(/commits|cvs/) { // we already count commits, so...
+          continue;
+        }
         let pct_change =Math.floor( 100 * ( (mldata.quarterly[0] - mldata.quarterly[1]) /
(mldata.quarterly[1]*1.0) ));
         let pct_change_txt = "%u%".format(Math.abs(pct_change));
         if (isNaN(pct_change) || !isFinite(pct_change)) {



Mime
View raw message