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: Add chair markers to committer details
Date Fri, 05 Jan 2018 01:08:42 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 5c284f8  Add chair markers to committer details
5c284f8 is described below

commit 5c284f84a350e50efc3db85042adf52127fe5a86
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Jan 5 01:08:31 2018 +0000

    Add chair markers to committer details
---
 www/roster/models/committer.rb | 3 +++
 www/roster/views/person.js.rb  | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index 34f7544..b2979f6 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -165,8 +165,11 @@ class Committer
       ASF::MLIST.digests(person.all_mail, response)
       # Check for missing private@ subscriptions
       response[:privateNosub] = []
+      response[:chairOf] = []
       response[:committees].each do |cttee|
         pmc = ASF::Committee.find(cttee)
+        chairs = pmc.chairs.map {|x| x[:id]}
+        response[:chairOf] << cttee if chairs.include?(id) 
         pmail = "private@#{pmc.mail_list}.apache.org" rescue ''
         subbed = false
         response[:subscriptions].each do |sub|
diff --git a/www/roster/views/person.js.rb b/www/roster/views/person.js.rb
index 76caf36..aed3cc1 100644
--- a/www/roster/views/person.js.rb
+++ b/www/roster/views/person.js.rb
@@ -43,6 +43,9 @@ class Person < Vue
                   _b " (*)"
                 end
               end
+              if @committer.chairOf.include? pmc
+                _ ' (chair)'
+              end
             }
           end
 

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

Mime
View raw message