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 6789f80  Projects are all guineapigs now
6789f80 is described below

commit 6789f806a732cdb71aab0dbcc83f66cca7ef8055
Author: Sebb <[email protected]>
AuthorDate: Thu Jan 31 10:01:10 2019 +0000

    Projects are all guineapigs now
---
 www/board/agenda/views/actions/todos.json.rb | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/www/board/agenda/views/actions/todos.json.rb 
b/www/board/agenda/views/actions/todos.json.rb
index fbc3548..8b79ae3 100644
--- a/www/board/agenda/views/actions/todos.json.rb
+++ b/www/board/agenda/views/actions/todos.json.rb
@@ -118,32 +118,10 @@ if @establish and env.password
     people = item['people'].map {|id, hash| [id, hash[:name]]}
 
     ASF::LDAP.bind(env.user, env.password) do
-      guineapig = ASF::Committee::isGuineaPig?(pmc.downcase)
-
-      # old style definitions
-      unless guineapig
-        if ASF::Group.find(pmc.downcase).members.empty?
-          ASF::Group.add(pmc.downcase, members)
-        end
-
-        if ASF::Committee.find(pmc.downcase).members.empty?
-          ASF::Committee.add(pmc.downcase, members)
-        end
-      end
-
       # new style definitions
       project = ASF::Project[pmc.downcase]
       if not project
-        unless ASF::Committee[pmc.downcase] or guineapig
-          ASF::Committee.add(pmc.downcase, members)
-        end
-
         ASF::Project.find(pmc.downcase).create(members, members)
-      elsif not guineapig
-        # sync project owners with new PMC list
-        project.add_owners(members)
-        project.remove_owners(project.owners - members)
-        project.add_members(members)
       end
     end 
   end

Reply via email to