Author: sebb
Date: Mon Jun 16 15:58:17 2025
New Revision: 1926484
URL: http://svn.apache.org/viewvc?rev=1926484&view=rev
Log:
Restore Jira stats if Kibble is missing
Modified:
comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
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/generators.js
URL:
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1926484&r1=1926483&r2=1926484&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
Jun 16 15:58:17 2025
@@ -240,6 +240,10 @@ function health_tips(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 (!haskibble) {
+ let jira = data.jira[project];
+ if (jira[0] || jira[1]) txt += "<li>%u JIRA tickets opened and %u
closed in the past quarter.</li>".format(jira[0], jira[1]);
+ }
if (haskibble) {
let color = 'black';
let ctxt = data.kibble.jira.change.opened;
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=1926484&r1=1926483&r2=1926484&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
Mon Jun 16 15:58:17 2025
@@ -448,6 +448,20 @@ function statistics_health(data) {
}
html.inject(new HTML('hr'));
+ } else {
+ let jira = data.jira[project];
+ if (jira[0] || jira[1]) {
+ let xhtml = new HTML('div', {
+ style: {
+ position: 'relative',
+ clear: 'both'
+ }
+ });
+ let txt = "<h5>JIRA activity:</h5>";
+ txt += "<li>%u JIRA tickets opened and %u closed in the past
quarter.</li>".format(jira[0], jira[1]);
+ xhtml.innerHTML = txt;
+ html.inject(xhtml);
+ }
}
// 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=1926484&r1=1926483&r2=1926484&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Mon Jun 16
15:58:17 2025
@@ -1454,6 +1454,10 @@ function health_tips(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 (!haskibble) {
+ let jira = data.jira[project];
+ if (jira[0] || jira[1]) txt += "<li>%u JIRA tickets opened and %u
closed in the past quarter.</li>".format(jira[0], jira[1]);
+ }
if (haskibble) {
let color = 'black';
let ctxt = data.kibble.jira.change.opened;
@@ -2667,6 +2671,20 @@ function statistics_health(data) {
}
html.inject(new HTML('hr'));
+ } else {
+ let jira = data.jira[project];
+ if (jira[0] || jira[1]) {
+ let xhtml = new HTML('div', {
+ style: {
+ position: 'relative',
+ clear: 'both'
+ }
+ });
+ let txt = "<h5>JIRA activity:</h5>";
+ txt += "<li>%u JIRA tickets opened and %u closed in the past
quarter.</li>".format(jira[0], jira[1]);
+ xhtml.innerHTML = txt;
+ html.inject(xhtml);
+ }
}
// Commits and contributors