whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Output the officer data
Date Wed, 02 May 2018 19:56:41 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 3d2fbf5  Output the officer data
3d2fbf5 is described below

commit 3d2fbf53182790a4fa4e25d69210cbc6cc8a381b
Author: Sebb <sebb@apache.org>
AuthorDate: Wed May 2 20:56:40 2018 +0100

    Output the officer data
---
 www/roster/public_committee_info.rb | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/www/roster/public_committee_info.rb b/www/roster/public_committee_info.rb
index 6685bc3..b9dcad3 100644
--- a/www/roster/public_committee_info.rb
+++ b/www/roster/public_committee_info.rb
@@ -58,6 +58,17 @@ info[:committees] = Hash[committees.map {|committee|
   }]
 }]
 
+info[:officers] = Hash[
+  ASF::Committee.officers.map { |officer|
+    [officer.name, 
+      {
+        display_name: officer.display_name,
+        roster: Hash[ officer.chairs.map {|e| [e[:id], {:name => e[:name]}]}]
+      }
+    ]
+  }
+]
+
 public_json_output(info)
 
 # Check if there is an unexpected entry date

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.

Mime
View raw message