community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864388 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js
Date Sun, 04 Aug 2019 14:44:33 GMT
Author: humbedooh
Date: Sun Aug  4 14:44:32 2019
New Revision: 1864388

URL: http://svn.apache.org/viewvc?rev=1864388&view=rev
Log:
also add jiras closed :)

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=1864388&r1=1864387&r2=1864388&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 14:44:32
2019
@@ -238,6 +238,22 @@ function health_tips(data) {
       let s = data.kibble.jira.after.opened == 1 ? '' : 's';
       txt += "<li style='color: %s;'>%u issue%s opened in JIRA, past quarter (%s)</li>".format(color,
data.kibble.jira.after.opened, s, ctxt);
     }
+    if (data.kibble) {
+      let color = 'black';
+      let ctxt = data.kibble.jira.change.closed;
+      let pct = parseInt(ctxt);
+      if (pct > 0) {
+        if (pct > 10) color = 'green';
+        ctxt += ' increase';
+      } else if (pct < 0) {
+        if (pct < -10) color = 'maroon';
+        ctxt += ' decrease';
+      } else {
+        ctxt = 'no change';
+      }
+      let s = data.kibble.jira.after.closed == 1 ? '' : 's';
+      txt += "<li style='color: %s;'>%u issue%s closed in JIRA, past quarter (%s)</li>".format(color,
data.kibble.jira.after.closed, s, ctxt);
+    }
     
     
     // Commits and contributors

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=1864388&r1=1864387&r2=1864388&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 14:44:32 2019
@@ -1417,6 +1417,22 @@ function health_tips(data) {
       let s = data.kibble.jira.after.opened == 1 ? '' : 's';
       txt += "<li style='color: %s;'>%u issue%s opened in JIRA, past quarter (%s)</li>".format(color,
data.kibble.jira.after.opened, s, ctxt);
     }
+    if (data.kibble) {
+      let color = 'black';
+      let ctxt = data.kibble.jira.change.closed;
+      let pct = parseInt(ctxt);
+      if (pct > 0) {
+        if (pct > 10) color = 'green';
+        ctxt += ' increase';
+      } else if (pct < 0) {
+        if (pct < -10) color = 'maroon';
+        ctxt += ' decrease';
+      } else {
+        ctxt = 'no change';
+      }
+      let s = data.kibble.jira.after.closed == 1 ? '' : 's';
+      txt += "<li style='color: %s;'>%u issue%s closed in JIRA, past quarter (%s)</li>".format(color,
data.kibble.jira.after.closed, s, ctxt);
+    }
     
     
     // Commits and contributors



Mime
View raw message