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/05 05:36:07 UTC
svn commit: r1864410 - in /comdev/reporter.apache.org/trunk/site/wizard/js:
source/generators.js wizard.js
Author: humbedooh
Date: Mon Aug 5 05:36:07 2019
New Revision: 1864410
URL: http://svn.apache.org/viewvc?rev=1864410&view=rev
Log:
discard lines with no activity and no change
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=1864410&r1=1864409&r2=1864410&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 Mon Aug 5 05:36:07 2019
@@ -238,7 +238,9 @@ function health_tips(data) {
ctxt = 'no change';
}
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 (! (ctxt == 'no change' && data.kibble.jira.after.opened == 0)) {
+ 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';
@@ -254,7 +256,9 @@ function health_tips(data) {
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);
+ if (! (ctxt == 'no change' && data.kibble.jira.after.closed == 0)) {
+ txt += "<li style='color: %s;'>%u issue%s closed in JIRA, past quarter (%s)</li>".format(color, data.kibble.jira.after.closed, s, ctxt);
+ }
}
@@ -308,7 +312,9 @@ function health_tips(data) {
ctxt = 'no change';
}
let s = data.kibble.prs.after.opened == 1 ? '' : 's';
- txt += "<li style='color: %s;'>%u PR%s opened on GitHub, past quarter (%s)</li>".format(color, data.kibble.prs.after.opened, s, ctxt);
+ if (! (ctxt == 'no change' && data.kibble.prs.after.opened == 0)) {
+ txt += "<li style='color: %s;'>%u PR%s opened on GitHub, past quarter (%s)</li>".format(color, data.kibble.prs.after.opened, s, ctxt);
+ }
}
if (data.kibble) {
@@ -325,7 +331,9 @@ function health_tips(data) {
ctxt = 'no change';
}
let s = data.kibble.prs.after.closed == 1 ? '' : 's';
- txt += "<li style='color: %s;'>%u PR%s closed on GitHub, past quarter (%s)</li>".format(color, data.kibble.prs.after.closed, s, ctxt);
+ if (! (ctxt == 'no change' && data.kibble.prs.after.closed == 0)) {
+ txt += "<li style='color: %s;'>%u PR%s closed on GitHub, past quarter (%s)</li>".format(color, data.kibble.prs.after.closed, s, ctxt);
+ }
}
// GitHub: Issues
@@ -343,7 +351,9 @@ function health_tips(data) {
ctxt = 'no change';
}
let s = data.kibble.issues.after.opened == 1 ? '' : 's';
- txt += "<li style='color: %s;'>%u issue%s opened on GitHub, past quarter (%s)</li>".format(color, data.kibble.issues.after.opened, s, ctxt);
+ if (! (ctxt == 'no change' && data.kibble.issues.after.opened == 0)) {
+ txt += "<li style='color: %s;'>%u issue%s opened on GitHub, past quarter (%s)</li>".format(color, data.kibble.issues.after.opened, s, ctxt);
+ }
}
if (data.kibble) {
@@ -360,7 +370,9 @@ function health_tips(data) {
ctxt = 'no change';
}
let s = data.kibble.issues.after.closed == 1 ? '' : 's';
- txt += "<li style='color: %s;'>%u issue%s closed on GitHub, past quarter (%s)</li>".format(color, data.kibble.issues.after.closed, s, ctxt);
+ if (! (ctxt == 'no change' && data.kibble.issues.after.closed == 0)) {
+ txt += "<li style='color: %s;'>%u issue%s closed on GitHub, past quarter (%s)</li>".format(color, data.kibble.issues.after.closed, s, ctxt);
+ }
}
// Busiest topics
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=1864410&r1=1864409&r2=1864410&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Mon Aug 5 05:36:07 2019
@@ -1417,7 +1417,9 @@ function health_tips(data) {
ctxt = 'no change';
}
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 (! (ctxt == 'no change' && data.kibble.jira.after.opened == 0)) {
+ 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';
@@ -1433,7 +1435,9 @@ function health_tips(data) {
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);
+ if (! (ctxt == 'no change' && data.kibble.jira.after.closed == 0)) {
+ txt += "<li style='color: %s;'>%u issue%s closed in JIRA, past quarter (%s)</li>".format(color, data.kibble.jira.after.closed, s, ctxt);
+ }
}
@@ -1487,7 +1491,9 @@ function health_tips(data) {
ctxt = 'no change';
}
let s = data.kibble.prs.after.opened == 1 ? '' : 's';
- txt += "<li style='color: %s;'>%u PR%s opened on GitHub, past quarter (%s)</li>".format(color, data.kibble.prs.after.opened, s, ctxt);
+ if (! (ctxt == 'no change' && data.kibble.prs.after.opened == 0)) {
+ txt += "<li style='color: %s;'>%u PR%s opened on GitHub, past quarter (%s)</li>".format(color, data.kibble.prs.after.opened, s, ctxt);
+ }
}
if (data.kibble) {
@@ -1504,7 +1510,9 @@ function health_tips(data) {
ctxt = 'no change';
}
let s = data.kibble.prs.after.closed == 1 ? '' : 's';
- txt += "<li style='color: %s;'>%u PR%s closed on GitHub, past quarter (%s)</li>".format(color, data.kibble.prs.after.closed, s, ctxt);
+ if (! (ctxt == 'no change' && data.kibble.prs.after.closed == 0)) {
+ txt += "<li style='color: %s;'>%u PR%s closed on GitHub, past quarter (%s)</li>".format(color, data.kibble.prs.after.closed, s, ctxt);
+ }
}
// GitHub: Issues
@@ -1522,7 +1530,9 @@ function health_tips(data) {
ctxt = 'no change';
}
let s = data.kibble.issues.after.opened == 1 ? '' : 's';
- txt += "<li style='color: %s;'>%u issue%s opened on GitHub, past quarter (%s)</li>".format(color, data.kibble.issues.after.opened, s, ctxt);
+ if (! (ctxt == 'no change' && data.kibble.issues.after.opened == 0)) {
+ txt += "<li style='color: %s;'>%u issue%s opened on GitHub, past quarter (%s)</li>".format(color, data.kibble.issues.after.opened, s, ctxt);
+ }
}
if (data.kibble) {
@@ -1539,7 +1549,9 @@ function health_tips(data) {
ctxt = 'no change';
}
let s = data.kibble.issues.after.closed == 1 ? '' : 's';
- txt += "<li style='color: %s;'>%u issue%s closed on GitHub, past quarter (%s)</li>".format(color, data.kibble.issues.after.closed, s, ctxt);
+ if (! (ctxt == 'no change' && data.kibble.issues.after.closed == 0)) {
+ txt += "<li style='color: %s;'>%u issue%s closed on GitHub, past quarter (%s)</li>".format(color, data.kibble.issues.after.closed, s, ctxt);
+ }
}
// Busiest topics