community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1727431 - /comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
Date Thu, 28 Jan 2016 20:28:55 GMT
Author: sebb
Date: Thu Jan 28 20:28:55 2016
New Revision: 1727431

URL: http://svn.apache.org/viewvc?rev=1727431&view=rev
Log:
Tidy up old data file by removing non-ldap groups

Modified:
    comdev/reporter.apache.org/trunk/scripts/parsepmcs.py

Modified: comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/parsepmcs.py?rev=1727431&r1=1727430&r2=1727431&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/parsepmcs.py Thu Jan 28 20:28:55 2016
@@ -104,6 +104,26 @@ for group in ldapgroups:
         for cid in ldapgroups[group]['roster']:
             updateProjects(stamp, group, cid, ldappeople[cid]['name'])
 
+
+"""
+   The old code used people.apache.org which included podling groups.
+   We don't want these, and we need to remove any existing ones.
+   Otherwise we cannot determine when a podling graduates.
+   Proactively remove the nonldap groups. 
+   [This code can be removed in due course]
+"""
+
+nonldapgroups = loadJson('https://whimsy.apache.org/public/public_nonldap_groups.json')['groups']
+for nongroup in sorted(nonldapgroups):
+    if nongroup not in ldapgroups: # should not happen, but check anyway
+        if nongroup in projects:
+            print("Dropping non-ldap group %s" % nongroup)
+            del projects[nongroup]
+#        else:
+#            print("Not found non-ldap group %s" % nongroup)
+    else:
+        print("Unexpected non-ldap group %s in projects list " % nongroup)
+
 # Delete retired members
 ret = 0
 for project in projects:



Mime
View raw message