You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/07/31 15:46:19 UTC
svn commit: r1864078 - /comdev/reporter.apache.org/trunk/site/getjson.py
Author: humbedooh
Date: Wed Jul 31 15:46:19 2019
New Revision: 1864078
URL: http://svn.apache.org/viewvc?rev=1864078&view=rev
Log:
Spit out who WE are
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=1864078&r1=1864077&r2=1864078&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Jul 31 15:46:19 2019
@@ -42,6 +42,7 @@ uc = UrlCache(interval=1800, silent=True
# Relative path to home directory from here (site)
RAOHOME = '../'
+COMMITTER_INFO = 'https://whimsy.apache.org/public/public_ldap_people.json'
MEMBER_INFO = 'https://whimsy.apache.org/public/member-info.json'
PROJECTS = 'https://whimsy.apache.org/public/public_ldap_projects.json'
@@ -98,6 +99,7 @@ def loadJson(url):
projects = loadJson(PROJECTS)['projects']
members = loadJson(MEMBER_INFO)['members']
+committers = loadJson(COMMITTER_INFO)['people']
def getPMCs(uid):
"""Returns the array of LDAP committee groups to which the uid belongs. Excludes incubator"""
@@ -373,7 +375,8 @@ if re.match(r"^[-a-zA-Z0-9_.]+$", user):
'releases': rdata,
'keys': keys,
'health': health,
- 'checker': checker
+ 'checker': checker,
+ 'you': committers[user],
}
# AFAICT dumps always uses \n for EOL