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 98d28b0c Detect missing Board subscriptions
98d28b0c is described below

commit 98d28b0c7fbfdba5beefeabc10cb259f7e72ca75
Author: Sebb <s...@apache.org>
AuthorDate: Tue Jun 24 20:29:09 2025 +0100

    Detect missing Board subscriptions
---
 www/board/subscriptions.cgi | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/www/board/subscriptions.cgi b/www/board/subscriptions.cgi
index e3c30064..89752824 100755
--- a/www/board/subscriptions.cgi
+++ b/www/board/subscriptions.cgi
@@ -11,6 +11,7 @@ info_chairs = 
ASF::Committee.load_committee_info.group_by(&:chair)
 ldap_chairs = ASF.pmc_chairs
 subscribers, modtime = ASF::MLIST.board_subscribers(false) # excluding 
archivers
 member_statuses = ASF::Member.member_statuses
+board = ASF::Service['board'].members
 
 _html do
   _body? do
@@ -140,8 +141,8 @@ _html do
         end
       end
 
-      chairs = ( info_chairs.keys + ldap_chairs ).uniq
-      missing = chairs.map(&:id) - ids.map(&:first)
+      expected = ( info_chairs.keys + ldap_chairs  + board).uniq
+      missing = expected.map(&:id) - ids.map(&:first)
       unless missing.empty?
         _h3_.unsub! 'Not subscribed to the list'
         _table.table do
@@ -162,7 +163,9 @@ _html do
                 _td {_a id, href: href}
               end
               _td person.public_name
-              if info_chairs.include? person
+              if board.include? person
+                _td {_strong 'Board' }
+              elsif info_chairs.include? person
                 text = info_chairs[person].uniq.map(&:display_name).join(', ')
                 if ldap_chairs.include? person
                   _td text

Reply via email to