community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1805938 - /comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py
Date Wed, 23 Aug 2017 16:51:51 GMT
Author: sebb
Date: Wed Aug 23 16:51:51 2017
New Revision: 1805938

URL: http://svn.apache.org/viewvc?rev=1805938&view=rev
Log:
Use ldap_projects in preference to groups/cttees

Modified:
    comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py

Modified: comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py?rev=1805938&r1=1805937&r2=1805938&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsecommitters.py Wed Aug 23 16:51:51 2017
@@ -7,7 +7,8 @@ https://whimsy.apache.org/public/member_
 https://whimsy.apache.org/public/public_ldap_committees.json
 https://whimsy.apache.org/public/public_ldap_groups.json
 https://whimsy.apache.org/public/public_ldap_people.json
-https://whimsy.apache.org/public/public_nonldap_groups.json
+https://whimsy.apache.org/public/public_podling_status.json
+https://whimsy.apache.org/public/public_ldap_projects.json
 
 Creates:
 
@@ -72,24 +73,35 @@ memberinfo = loadJson('https://whimsy.ap
 # load the other required files
 ldapgroups = loadJson('https://whimsy.apache.org/public/public_ldap_groups.json')['groups']
 ldapcttees = loadJson('https://whimsy.apache.org/public/public_ldap_committees.json')['committees']
-nonldapgroups = loadJson('https://whimsy.apache.org/public/public_nonldap_groups.json')['groups']
+ldapprojects = loadJson('https://whimsy.apache.org/public/public_ldap_projects.json')['projects']
+podlingstatus = loadJson('https://whimsy.apache.org/public/public_podling_status.json')['podling']
 
-for g in nonldapgroups:
-    groups[g] = nonldapgroups[g]['roster']
-    for p in nonldapgroups[g]['roster']:
-        addPersonGroup(p,g,'non-LDAP').append(g)
+for g in ldapprojects:
+    if not g == 'committers':
+        members = ldapprojects[g]['members']
+        groups[g] = members
+        for p in members:
+            addPersonGroup(p,g,'LDAP project').append(g)
+        if g not in podlingstatus or podlingstatus[g] == 'graduated':
+            owners = ldapprojects[g]['owners']
+            groups[g+'-pmc'] = owners
+            for p in owners:
+                addPersonGroup(p,g,'LDAP committee').append(g+'-pmc')
 
+# Other Unix groups (not all have been transferred yet)
 for g in ldapgroups:
-    if not g == 'committers':
+    if not g == 'committers' and not g == 'podlings' and not g in ldapprojects:
         groups[g] = ldapgroups[g]['roster']
         for p in ldapgroups[g]['roster']:
             addPersonGroup(p,g,'LDAP unix').append(g)
 
+# Other committees not yet in projects (security etc)
 for g in ldapcttees:
-    groups[g+'-pmc'] = ldapcttees[g]['roster']
-    for p in ldapcttees[g]['roster']:
-        addPersonGroup(p,g,'LDAP committee').append(g+'-pmc')
-    
+    if not g in ldapprojects:
+        groups[g+'-pmc'] = ldapcttees[g]['roster']
+        for p in ldapcttees[g]['roster']:
+            addPersonGroup(p,g,'LDAP committee').append(g+'-pmc')
+
 # Now sort the groups arrays
 for p in people:
     people[p]['groups'].sort()



Mime
View raw message