community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1707417 - /comdev/reporter.apache.org/trunk/site/getjson.py
Date Wed, 07 Oct 2015 23:05:23 GMT
Author: sebb
Date: Wed Oct  7 23:05:23 2015
New Revision: 1707417

URL: http://svn.apache.org/viewvc?rev=1707417&view=rev
Log:
Add missing 'hc' pmap entry and some docn

Modified:
    comdev/reporter.apache.org/trunk/site/getjson.py

Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1707417&r1=1707416&r2=1707417&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Oct  7 23:05:23 2015
@@ -40,9 +40,10 @@ jmap = {
     'corinthia': ['COR']
 }
 
-pmap = {
+pmap = {# convert mailing list name to PMC name
     'community': 'comdev',
     'ws': 'webservices',
+    'hc': 'httpcomponents',
     'whimsical': 'whimsy',
     'empire': 'empire-db'
 }
@@ -260,9 +261,9 @@ if m:
     with open("/var/www/reporter.apache.org/data/mailinglists.json", "r") as f:
         ml = json.loads(f.read())
         f.close()
-        for entry in ml:
+        for entry in sorted(ml): # e.g. abdera.apache.org-commits, ws.apache.org-dev
             tlp = entry.split(".")[0]
-            if tlp in pmap:
+            if tlp in pmap: # convert ml prefix to PMC internal name
                 tlp = pmap[tlp]
             if tlp in groups:
                 mlstats[tlp] = mlstats[tlp] if tlp in mlstats else {}
@@ -271,13 +272,13 @@ if m:
     with open("/var/www/reporter.apache.org/data/maildata_extended.json", "r") as f:
         mld = json.loads(f.read())
         f.close()
-        for entry in mld:
+        for entry in mld: # e.g. hc-dev, ant-users, ws-dev
             tlp = entry.split("-")[0]
             nentry = entry
             if tlp == "empire":
                 tlp = "empire-db"
                 nentry = entry.replace("empire-", "empire-db-")
-            if tlp in pmap:
+            if tlp in pmap: # convert ml prefix to PMC internal name
                 tlp = pmap[tlp]
             if tlp in groups:
                 emails[tlp] = emails[tlp] if tlp in emails else {}



Mime
View raw message