community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864066 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js
Date Wed, 31 Jul 2019 14:35:07 GMT
Author: humbedooh
Date: Wed Jul 31 14:35:06 2019
New Revision: 1864066

URL: http://svn.apache.org/viewvc?rev=1864066&view=rev
Log:
Only note about mailing list changes if the change involves >= 5 emails.

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=1864066&r1=1864065&r2=1864066&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 Wed Jul 31 14:35:06
2019
@@ -100,10 +100,10 @@ function health_tips(data) {
         let a = ml.split('-', 2);
         ml = "%s@%s.apache.org".format(a[1], a[0]);
         let pct_change =Math.floor( 100 * ( (mldata.quarterly[0] - mldata.quarterly[1]) /
(mldata.quarterly[1]*1.0) ));
-        if (pct_change > 25) {
+        if (pct_change > 25 && mldata.quarterly[0] > 5) {
             txt += "<span style='color: #080'>- %s had a %u% increase in traffic in
the past quarter (%u emails compared to %u)</span><br/>".format(ml, pct_change,
mldata.quarterly[0], mldata.quarterly[1]);
         }
-        else if (pct_change < -25) {
+        else if (pct_change < -25  && mldata.quarterly[1] > 5) {
             pct_change = Math.abs(pct_change)
             txt += "<span style='color: #800'>- %s had a %u% decrease in traffic in
the past quarter (%u emails compared to %u)</span><br/>".format(ml, pct_change,
mldata.quarterly[0], mldata.quarterly[1]);
         }

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=1864066&r1=1864065&r2=1864066&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Wed Jul 31 14:35:06 2019
@@ -1088,10 +1088,10 @@ function health_tips(data) {
         let a = ml.split('-', 2);
         ml = "%s@%s.apache.org".format(a[1], a[0]);
         let pct_change =Math.floor( 100 * ( (mldata.quarterly[0] - mldata.quarterly[1]) /
(mldata.quarterly[1]*1.0) ));
-        if (pct_change > 25) {
+        if (pct_change > 25 && mldata.quarterly[0] > 5) {
             txt += "<span style='color: #080'>- %s had a %u% increase in traffic in
the past quarter (%u emails compared to %u)</span><br/>".format(ml, pct_change,
mldata.quarterly[0], mldata.quarterly[1]);
         }
-        else if (pct_change < -25) {
+        else if (pct_change < -25  && mldata.quarterly[1] > 5) {
             pct_change = Math.abs(pct_change)
             txt += "<span style='color: #800'>- %s had a %u% decrease in traffic in
the past quarter (%u emails compared to %u)</span><br/>".format(ml, pct_change,
mldata.quarterly[0], mldata.quarterly[1]);
         }



Mime
View raw message