community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1855261 - in /comdev/projects.apache.org/trunk: scripts/cronjobs/parsecommitters.py site/js/projects.js site/json/foundation/groups.json site/json/foundation/people.json
Date Mon, 11 Mar 2019 20:23:59 GMT
Author: sebb
Date: Mon Mar 11 20:23:59 2019
New Revision: 1855261

URL: http://svn.apache.org/viewvc?rev=1855261&view=rev
Log:
maxValue applies to vAxes, not series. Also choose a better max.

Modified:
    comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py
    comdev/projects.apache.org/trunk/site/js/projects.js
    comdev/projects.apache.org/trunk/site/json/foundation/groups.json
    comdev/projects.apache.org/trunk/site/json/foundation/people.json

Modified: comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py?rev=1855261&r1=1855260&r2=1855261&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py (original)
+++ comdev/projects.apache.org/trunk/scripts/cronjobs/parsecommitters.py Mon Mar 11 20:23:59
2019
@@ -106,4 +106,35 @@ with open("../../site/json/foundation/gr
     json.dump(groups, f, sort_keys=True, indent=0, ensure_ascii=False)
     f.close()
 
+###### Test of alternate account evolution counting - start #####
+from datetime import datetime
+accounts = {} # key: yyyy-mm value: number of accounts created
+now = datetime.now() # fetch time once
+currentMonth = now.month
+currentYear = now.year
+
+# gather the accounts data:
+#firstYear=1996 # earliest year in Whimsy data so far
+firstYear=1999 # earliest date in existing data
+firstKey="%04u-%02u" % (firstYear, 1) # catch all earlier entries
+for y in range(firstYear,currentYear+1):
+	for m in range(1,13): # end is exclusive
+		ym = "%04u-%02u" % (y, m)
+		accounts[ym]=0
+		if y == currentYear and m == currentMonth:
+			break
+
+for p in ldappeople:
+    stamp = ldappeople[p]['createTimestamp']
+    ym = stamp[0:4]+'-'+stamp[4:6] # pick up year and month (end index is exclusive)
+    try:
+        accounts[ym] += 1
+    except KeyError:
+        accounts[firstKey] += 1
+
+print("writing accounts-evolution2.json")
+with open("../../site/json/foundation/accounts-evolution2.json", "w", encoding='utf-8') as
f:
+    json.dump(accounts, f, sort_keys=True, indent=0, ensure_ascii=False)
+###### Test of alternate account evolution counting - end #####
+
 print("All done!")
\ No newline at end of file

Modified: comdev/projects.apache.org/trunk/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/site/js/projects.js?rev=1855261&r1=1855260&r2=1855261&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/site/js/projects.js (original)
+++ comdev/projects.apache.org/trunk/site/js/projects.js Mon Mar 11 20:23:59 2019
@@ -1458,13 +1458,13 @@ function drawAccountCreation(json) {
       width: 1160,
       vAxes:[
 
-      {title: 'New accounts', titleTextStyle: {color: '#0000DD'}},
+      {title: 'New accounts', titleTextStyle: {color: '#0000DD'}, maxValue: Math.max(200,max)},
       {title: 'Total number of accounts', titleTextStyle: {color: '#DD0000'}},
 
       ],
       series: {
         1: {type: "line", pointSize:3, lineWidth: 3, targetAxisIndex: 1},
-        0: {type: "bars", targetAxisIndex: 0, maxValue: max*2}
+        0: {type: "bars", targetAxisIndex: 0}
         },
         seriesType: "bars",
       tooltip: {isHtml: true}

Modified: comdev/projects.apache.org/trunk/site/json/foundation/groups.json
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/site/json/foundation/groups.json?rev=1855261&r1=1855260&r2=1855261&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/site/json/foundation/groups.json (original)
+++ comdev/projects.apache.org/trunk/site/json/foundation/groups.json Mon Mar 11 20:23:59
2019
@@ -3367,7 +3367,6 @@
 "dthompson",
 "efinnegan",
 "jadams",
-"johndament",
 "mbeckerle",
 "slawrence",
 "vtguy08",
@@ -3670,7 +3669,6 @@
 "lichaoyong",
 "lide",
 "lingbin",
-"lukehan",
 "maruyue",
 "morningman",
 "ningjiang",
@@ -6135,6 +6133,7 @@
 "philz",
 "sailesh",
 "skye",
+"stigahuang",
 "tarasbob",
 "tarmstrong",
 "tmarshall",
@@ -11062,6 +11061,7 @@
 "muli",
 "nswamy",
 "ozawa",
+"patriczhao",
 "pluskid",
 "qkou",
 "rahul003",
@@ -13737,7 +13737,6 @@
 "linjiaqi",
 "liuhaoyangzz",
 "liyuntao",
-"lukehan",
 "mck",
 "nacx",
 "ningjiang",
@@ -14479,7 +14478,6 @@
 "johnbodley",
 "kristw",
 "kwilliams",
-"lukehan",
 "maximebeauchemin",
 "michellet",
 "nishant",

Modified: comdev/projects.apache.org/trunk/site/json/foundation/people.json
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/site/json/foundation/people.json?rev=1855261&r1=1855260&r2=1855261&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/site/json/foundation/people.json (original)
+++ comdev/projects.apache.org/trunk/site/json/foundation/people.json Mon Mar 11 20:23:59
2019
@@ -23354,7 +23354,6 @@
 "groups": [
 "activemq",
 "cxf",
-"daffodil",
 "deltaspike",
 "deltaspike-pmc",
 "echarts",
@@ -28629,14 +28628,11 @@
 },
 "lukehan": {
 "groups": [
-"doris",
 "incubator",
 "incubator-pmc",
 "kylin",
 "kylin-pmc",
-"s2graph",
-"skywalking",
-"superset"
+"s2graph"
 ],
 "member": true,
 "name": "Luke Han"
@@ -35505,7 +35501,8 @@
 },
 "patriczhao": {
 "groups": [
-"incubator"
+"incubator",
+"mxnet"
 ],
 "member": false,
 "name": "Patric Zhao"
@@ -44583,7 +44580,8 @@
 },
 "stigahuang": {
 "groups": [
-"impala"
+"impala",
+"impala-pmc"
 ],
 "member": false,
 "name": "Quanlong Huang"



Mime
View raw message