community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From he...@apache.org
Subject svn commit: r1822084 - /comdev/reporter.apache.org/trunk/site/getjson.py
Date Wed, 24 Jan 2018 08:07:08 GMT
Author: henkp
Date: Wed Jan 24 08:07:08 2018
New Revision: 1822084

URL: http://svn.apache.org/viewvc?rev=1822084&view=rev
Log:
also use data/cache/checker.json

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=1822084&r1=1822083&r2=1822084&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Jan 24 08:07:08 2018
@@ -20,6 +20,7 @@
         data/maildata_extended.json
         https://whimsy.apache.org/public/member-info.json
         https://whimsy.apache.org/public/public_ldap_projects.json
+        data/cache/checker.json
         
     
     Environment variables:
@@ -272,6 +273,8 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
     keys = {}
     count = {}
     health = {}
+    checker_json = readJson(RAOHOME+"data/cache/checker.json", None)
+    checker = {}
     for group in groups:
         jiras = []
         count[group] = [0,0]
@@ -331,6 +334,11 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
                         cdata[group]['committer'][member] = cchanges[pmc][member]
         if group in pmcdates: # Make sure we have this PMC in the JSON, so as to not bork
             dates[group] = pmcdates[group] # only send the groups we want
+        if checker_json and 'meta' in checker_json and 'projects' in checker_json:
+            meta = checker_json['meta']
+            prjs = checker_json['projects']
+            checker[group] = prjs[group] if group in prjs else { 'errors': 0 }
+            checker[group]['meta'] = meta
     if not isMember:
         allpmcs = []
     output = {
@@ -346,7 +354,8 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
         'pdata': ddata,
         'releases': rdata,
         'keys': keys,
-        'health': health
+        'health': health,
+        'checker': checker
     }
 
     # AFAICT dumps always uses \n for EOL



Mime
View raw message