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/01 05:27:48 UTC

svn commit: r1864114 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js source/init.js source/primer.js wizard.js

Author: humbedooh
Date: Thu Aug  1 05:27:48 2019
New Revision: 1864114

URL: http://svn.apache.org/viewvc?rev=1864114&view=rev
Log:
Add in last set of comments found in previous board reports.

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
    comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js
    comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.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=1864114&r1=1864113&r2=1864114&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 Thu Aug  1 05:27:48 2019
@@ -113,6 +113,14 @@ function generate_meta(data) {
     let txt = "<b>Founded: </b>%s (%s)<br/>".format(founded.format('YYYY-MM-DD'), age);
     txt += "<b>Chair: </b> %s<br/>".format(data.pdata[project].chair);
     txt += getReportDate(cycles, project);
+    
+    // Previous comments of note?
+    let cdates = Object.keys(comments.comments);
+    cdates.sort();
+    if (comments && cdates) {
+      txt += "<hr/><h6>Last report comments from the board: </h6>";
+      txt += "<b>%s:</b><br/><pre>%s</pre>".format(cdates[cdates.length-1], comments.comments[cdates[cdates.length-1]]);
+    }
     return txt;
 }
 

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js?rev=1864114&r1=1864113&r2=1864114&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js Thu Aug  1 05:27:48 2019
@@ -29,7 +29,6 @@ if (project.length < 2) {
         titles[i].innerText = document.title;
     }
     
-    
     console.log("Initializing escrow checks");
     window.setInterval(escrow_check, 250);
     

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js?rev=1864114&r1=1864113&r2=1864114&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js Thu Aug  1 05:27:48 2019
@@ -3,6 +3,7 @@ let report = [null,null,null,null,null,n
 let current_step = 0;
 let cycles = {};
 let draft_mode = false;
+let comments = {};
 
 function modal(txt) {
     document.getElementById('alert_text').innerText = txt;
@@ -24,6 +25,11 @@ function prime_wizard(state, json) {
     
     let xtitle = document.getElementById("pname");
     xtitle.innerText = document.title;
+    GET("comments.py?project=%s".format(project), prime_comments, {})
+}
+
+function prime_comments(state, json) {
+    comments = json;
     GET("/reportingcycles.json", prime_cycles, {})
 }
 

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=1864114&r1=1864113&r2=1864114&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Thu Aug  1 05:27:48 2019
@@ -1101,6 +1101,14 @@ function generate_meta(data) {
     let txt = "<b>Founded: </b>%s (%s)<br/>".format(founded.format('YYYY-MM-DD'), age);
     txt += "<b>Chair: </b> %s<br/>".format(data.pdata[project].chair);
     txt += getReportDate(cycles, project);
+    
+    // Previous comments of note?
+    let cdates = Object.keys(comments.comments);
+    cdates.sort();
+    if (comments && cdates) {
+      txt += "<hr/><h6>Last report comments from the board: </h6>";
+      txt += "<b>%s:</b><br/><pre>%s</pre>".format(cdates[cdates.length-1], comments.comments[cdates[cdates.length-1]]);
+    }
     return txt;
 }
 
@@ -1270,7 +1278,6 @@ if (project.length < 2) {
         titles[i].innerText = document.title;
     }
     
-    
     console.log("Initializing escrow checks");
     window.setInterval(escrow_check, 250);
     
@@ -1286,6 +1293,7 @@ let report = [null,null,null,null,null,n
 let current_step = 0;
 let cycles = {};
 let draft_mode = false;
+let comments = {};
 
 function modal(txt) {
     document.getElementById('alert_text').innerText = txt;
@@ -1307,6 +1315,11 @@ function prime_wizard(state, json) {
     
     let xtitle = document.getElementById("pname");
     xtitle.innerText = document.title;
+    GET("comments.py?project=%s".format(project), prime_comments, {})
+}
+
+function prime_comments(state, json) {
+    comments = json;
     GET("/reportingcycles.json", prime_cycles, {})
 }