diff options
author | Andy Doan <andy.doan@linaro.org> | 2015-03-25 09:28:33 -0500 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2015-03-25 09:35:33 -0500 |
commit | 5a81c13c8310f18a2146a4fdf669632fbfcdb4a4 (patch) | |
tree | 755a6439e2194f46995da98364e6dcd9fdff0708 /templates | |
parent | e98748507d6df5bd30df6eac89e5aa2cf0e686cf (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.html | 16 |
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 %} |