You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2016/05/24 02:00:57 UTC

[whimsy] branch master updated: Suppress broken check

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  6af28d7   Suppress broken check
6af28d7 is described below

commit 6af28d728fea6ef396924464c86d024f59ab90f7
Author: Sebb <se...@apache.org>
AuthorDate: Tue May 24 03:00:49 2016 +0100

    Suppress broken check
---
 www/roster/public_committee_info.rb | 37 +++++++++++++++++++------------------
 1 file changed, 19 insertions(+), 18 deletions(-)

diff --git a/www/roster/public_committee_info.rb b/www/roster/public_committee_info.rb
index f57ccb9..9315e7f 100644
--- a/www/roster/public_committee_info.rb
+++ b/www/roster/public_committee_info.rb
@@ -62,21 +62,22 @@ public_json_output(info)
 
 # Check if there is an unexpected entry
 # we only do this if the file has changed to avoid excessive reports
-if changed? or true
-  last_updated = info[:last_updated]
-  info[:committees].each { |pmc, entry|
-    entry[:roster].each { |name, value|
-      jdate = value[:date]
-      if jdate
-        joined = Date.parse(jdate,'').to_time
-        # Joining date must not be before the file was updated
-        # N.B. this won't be true for new PMCs - TODO allow for this
-        if joined < last_updated
-          msg = "Unexpected joining date: PMC: #{pmc} Id: #{name} entry: #{value} (last_updated: #{last_updated})"
-          Wunderbar.warn msg
-          sendMail('Error detected processing committee-info.txt', msg)
-        end
-      end
-    }
-  }
-end
+# Doh - this won't work unless we just scan the changes.
+#if changed? or true
+#  last_updated = info[:last_updated]
+#  info[:committees].each { |pmc, entry|
+#    entry[:roster].each { |name, value|
+#      jdate = value[:date]
+#      if jdate
+#        joined = Date.parse(jdate,'').to_time
+#        # Joining date must not be before the file was updated
+#        # N.B. this won't be true for new PMCs - TODO allow for this
+#        if joined < last_updated
+#          msg = "Unexpected joining date: PMC: #{pmc} Id: #{name} entry: #{value} (last_updated: #{last_updated})"
+#          Wunderbar.warn msg
+#          sendMail('Error detected processing committee-info.txt', msg)
+#        end
+#      end
+#    }
+#  }
+#end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].