summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2015-03-25 09:28:33 -0500
committerAndy Doan <andy.doan@linaro.org>2015-03-25 09:35:33 -0500
commit5a81c13c8310f18a2146a4fdf669632fbfcdb4a4 (patch)
tree755a6439e2194f46995da98364e6dcd9fdff0708 /templates
parente98748507d6df5bd30df6eac89e5aa2cf0e686cf (diff)
add a "project activity report"
This is per: https://cards.linaro.org/browse/REQ-651 We have a few people that want a global view of what projects are most actively contributed to by Linaro. I spent a little time trying to come up with the most efficient way to query this information. Ultimately I choose a single query that then filled in the 3 reports we need (12mon, 6mon, 3mon). I was finding any other approach required me to hit the DB more. This query runs around 9 seconds at home, but can take up to 20s in production (i assume slow ec2 disk). Because of this, and the fact its targeted to a limited one-off type audience, I'm not exposing the URL any where on our site. ie - users have to know about the URL to pull up this report. Change-Id: I9847fc5e33edd5a0652796a209ff799810139ae7
Diffstat (limited to 'templates')
-rw-r--r--templates/patchmetrics/report_project_activity.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/patchmetrics/report_project_activity.html b/templates/patchmetrics/report_project_activity.html
new file mode 100644
index 0000000..e734018
--- /dev/null
+++ b/templates/patchmetrics/report_project_activity.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+
+{% block title %}Linaro Reports: Project Activity{% endblock %}
+{% block heading %}Project Activity{% endblock %}
+
+{% block body %}
+
+<h2>Top {{ summary|length}} Linaro Project Contributions</h2>
+<table class="patchlist">
+ <tr><th>Project</th><th>Last year</th><th>6 months</th><th>3 months</th></tr>
+{% for s in summary %}
+ <tr class="{% cycle 'odd' 'even' %}">{% for td in s %}<td>{{td}}</td>{% endfor %}</tr>
+{% endfor %}
+<table>
+
+{% endblock %}