community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1709497 - /comdev/reporter.apache.org/trunk/site/render_proposed.js
Date Tue, 20 Oct 2015 00:51:42 GMT
Author: sebb
Date: Tue Oct 20 00:51:42 2015
New Revision: 1709497

URL: http://svn.apache.org/viewvc?rev=1709497&view=rev
Log:
Report if LDAP group counts don't agree with each other or the CI file

Modified:
    comdev/reporter.apache.org/trunk/site/render_proposed.js

Modified: comdev/reporter.apache.org/trunk/site/render_proposed.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/render_proposed.js?rev=1709497&r1=1709496&r2=1709497&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/render_proposed.js (original)
+++ comdev/reporter.apache.org/trunk/site/render_proposed.js Tue Oct 20 00:51:42 2015
@@ -277,6 +277,7 @@ function PMCchanges(json, pmc, after) {
         changes.innerHTML += "<br>PMC established: " + json.pmcdates[pmc].pmc[0]
         changes.innerHTML += " (assumed actual date: " + epochSecsYYYYMMDD(pmcStartTime)
+ ")"
         addLine(pmc)
+        return c; // count of PMC members
 }
 
 function epochSecsYYYYMMDD(t) {
@@ -372,7 +373,7 @@ function renderFrontPage(json) {
 		var after = new Date();
 		after.setMonth(mo); // This also works if mo is negative
 
-        PMCchanges(json, pmc, after)
+        var totPMC = PMCchanges(json, pmc, after)
 
 		var changes = buildPanel(pmc, "LDAP changes");
 
@@ -473,6 +474,18 @@ function renderFrontPage(json) {
 				changes.innerHTML += "&rarr; " + "<b>Latest committer addition: </b><font
color='red'>more than two years ago (not in the archive!)</font><br>"
 			}
 			changes.innerHTML += "&rarr; " + "<b>Currently " + json.count[pmc][1] + " committers
and " + json.count[pmc][0] + " committee members.<br>"
+			var addLink = false
+            if (totPMC != json.count[pmc][0]) {
+                addLink = true
+                changes.innerHTML += "&rarr; <font color='red'><b>Count of
members in committee-info.txt (" + totPMC + ") does not agree with above </b></font><br>";
+            }
+            if (json.count[pmc][1] < json.count[pmc][0]) {
+                addLink = true
+                changes.innerHTML += "&rarr; <font color='red'><b>Not all
committee members are in the committer group </b></font><br>";
+            }
+            if (addLink) {
+                changes.innerHTML += '&rarr; See <a href="https://whimsy.apache.org/roster/committee/'
+ pmc + '" target="_blank">Whimsy PMC roster <a> for detailed differences<br>'
+            }
 			changes.innerHTML += "<br>Use modify_committee.pl to update the LDAP committee (PMC)
group"
 			changes.innerHTML += "<br>Use modify_unix_group.pl to update the committer list"
 			addLine(pmc)



Mime
View raw message