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/06 16:53:19 UTC

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

Author: humbedooh
Date: Tue Aug  6 16:53:19 2019
New Revision: 1864545

URL: http://svn.apache.org/viewvc?rev=1864545&view=rev
Log:
tweak some words and weed out data that has no importance for a project (aka no data)

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

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js?rev=1864545&r1=1864544&r2=1864545&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js Tue Aug  6 16:53:19 2019
@@ -229,7 +229,7 @@ function statistics_health(data) {
     if (bz[0] || bz[1]) txt += "<li>%u BugZilla tickets opened and %u closed in the past quarter.</li>".format(bz[0], bz[1]);
 
     // JIRA changes
-    if (data.kibble.jira) {
+    if (data.kibble.timeseries.jira.length > 0) {
         let xhtml = new HTML('div', {
             style: {
                 position: 'relative',
@@ -462,7 +462,7 @@ function statistics_health(data) {
     
 
     // GitHub: PRs
-    if (data.kibble && data.kibble.prs) {
+    if (data.kibble.timeseries.github.length > 0) {
         
         let xhtml = new HTML('div', {
             style: {
@@ -471,7 +471,7 @@ function statistics_health(data) {
             }
         });
         html.inject(xhtml);
-        let txt = "<h5>GitHub activity:</h5>";
+        let txt = "<h5>GitHub PR activity:</h5>";
         
         let color = 'black';
         let ctxt = data.kibble.prs.change.opened
@@ -590,7 +590,7 @@ function statistics_health(data) {
 
     
     // GitHub: issues
-    if (data.kibble && data.kibble.issues) {
+    if (data.kibble.timeseries.github.length > 0 && !(data.kibble.issues.after.opened == 0 && data.kibble.issues.before.opened == 0) ) {
         
         let xhtml = new HTML('div', {
             style: {

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=1864545&r1=1864544&r2=1864545&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Tue Aug  6 16:53:19 2019
@@ -2328,7 +2328,7 @@ function statistics_health(data) {
     if (bz[0] || bz[1]) txt += "<li>%u BugZilla tickets opened and %u closed in the past quarter.</li>".format(bz[0], bz[1]);
 
     // JIRA changes
-    if (data.kibble.jira) {
+    if (data.kibble.timeseries.jira.length > 0) {
         let xhtml = new HTML('div', {
             style: {
                 position: 'relative',
@@ -2561,7 +2561,7 @@ function statistics_health(data) {
     
 
     // GitHub: PRs
-    if (data.kibble && data.kibble.prs) {
+    if (data.kibble.timeseries.github.length > 0) {
         
         let xhtml = new HTML('div', {
             style: {
@@ -2570,7 +2570,7 @@ function statistics_health(data) {
             }
         });
         html.inject(xhtml);
-        let txt = "<h5>GitHub activity:</h5>";
+        let txt = "<h5>GitHub PR activity:</h5>";
         
         let color = 'black';
         let ctxt = data.kibble.prs.change.opened
@@ -2689,7 +2689,7 @@ function statistics_health(data) {
 
     
     // GitHub: issues
-    if (data.kibble && data.kibble.issues) {
+    if (data.kibble.timeseries.github.length > 0 && !(data.kibble.issues.after.opened == 0 && data.kibble.issues.before.opened == 0) ) {
         
         let xhtml = new HTML('div', {
             style: {