You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/07/11 20:30:03 UTC

svn commit: r1690397 - in /comdev/reporter.apache.org/branches/deployed: README.txt prettify.py

Author: sebb
Date: Sat Jul 11 18:30:02 2015
New Revision: 1690397

URL: http://svn.apache.org/r1690397
Log:
Add remaining unapplied changes from trunk

Added:
    comdev/reporter.apache.org/branches/deployed/README.txt   (with props)
    comdev/reporter.apache.org/branches/deployed/prettify.py   (with props)

Added: comdev/reporter.apache.org/branches/deployed/README.txt
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/deployed/README.txt?rev=1690397&view=auto
==============================================================================
--- comdev/reporter.apache.org/branches/deployed/README.txt (added)
+++ comdev/reporter.apache.org/branches/deployed/README.txt Sat Jul 11 18:30:02 2015
@@ -0,0 +1,41 @@
+This file is an attempt to start to document how the reporter.apache.org site is set up.
+
+It is currently very rudimentary.
+
+
+
+Javascript and CSS are Foundation
+http://foundation.zurb.com
+Current version seems to be 5.5.1 (see start of site/css/foundation.css)
+
+Also uses Google Loader:
+https://developers.google.com/loader/
+This is used by site/index.html which loads the visualization API modules: corechart, timeline
+
+The site seems to run on the host nyx-ssl
+
+The HTTPD conf is defined here:
+https://svn.apache.org/repos/infra/infrastructure/trunk/machines/vms/nyx-ssl.apache.org/etc/apache2/sites-available/reporter.apache.org.conf
+
+Some Puppet data is here
+https://svn.apache.org/repos/infra/infrastructure/trunk/puppet/hosts/nyx-ssl/manifests/init.pp
+
+Crontab:
+# m h   dom mon dow   command
+00 4,12,20 * * * cd /var/www/reporter.apache.org/data && python3.4 parsepmcs.py
+00 01      * * * cd /var/www/reporter.apache.org/ && python mailglomper.py
+00 09      * * * cd /var/www/reporter.apache.org/ && python readjira.py
+00 12      * * * curl "(redacted)" > /var/www/reporter.apache.org/data/mailinglists.json
+
+Scripts:
+- data/parsepmcs.py
+  creates pmcs.json and projects.json (currently from http://people.apache.org/committer-index.html)
+
+- mailglomper.py
+  Updates data/maildata_extended.json from http://mail-archives.us.apache.org/mod_mbox/<list>/<date>.mbox
+
+- readjira.py
+  Creates JSON files under /var/www/reporter.apache.org/data/JIRA
+
+  TODO
+  - How is site/reportingcycles.json created/maintained?
\ No newline at end of file

Propchange: comdev/reporter.apache.org/branches/deployed/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: comdev/reporter.apache.org/branches/deployed/prettify.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/deployed/prettify.py?rev=1690397&view=auto
==============================================================================
--- comdev/reporter.apache.org/branches/deployed/prettify.py (added)
+++ comdev/reporter.apache.org/branches/deployed/prettify.py Sat Jul 11 18:30:02 2015
@@ -0,0 +1,19 @@
+# Prettify input json file: indent, sort
+import json
+import sys
+for arg in sys.argv[1:]:
+    print("Reading " + arg)
+    input = {}
+    try:
+        with open(arg, "r") as f:
+            input = json.loads(f.read())
+            f.close()
+    except:
+        pass
+
+    out = arg + ".out"
+    print("Writing " + out)
+    with open(out, "w") as f:
+        f.write(json.dumps(input, indent=1, sort_keys=True))
+        f.close()
+

Propchange: comdev/reporter.apache.org/branches/deployed/prettify.py
------------------------------------------------------------------------------
    svn:eol-style = native