You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/04 06:54:23 UTC

svn commit: r1864361 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js

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)) {