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 2018/07/13 00:30:11 UTC

[whimsy] branch master updated: Provide list of ids only

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 099d665  Provide list of ids only
099d665 is described below

commit 099d6657157fcbafc43a96223474ddb964236d34
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jul 13 01:30:09 2018 +0100

    Provide list of ids only
---
 lib/whimsy/asf/ldap.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index a541300..badfbe9 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -542,6 +542,12 @@ module ASF
         map {|uid| Person.find uid[/uid=(.*?),/,1]}
     end
 
+    # get a list of committers (ids only)
+    def self.listids()
+      ASF.search_one(base, 'cn=committers', 'member').flatten.
+        map {|uid| uid[/uid=(.*?),/,1]}
+    end
+
     # create a new person and add as a new committer to LDAP.
     # Attrs must include uid, cn, and mail
     def self.create(attrs)