Ilya Shakhat f2d6e0f312 Remove project type from data model and UI
* Removed project_type and project_group from default data
* Add module groups automatically, one per organization
* Removed project type from UI code
* Enforced patterns in schema of default data

This patch changes format of data stored in memcached. The service
needs to be restarted and memcached filled from scratch.

Change-Id: I737712025142d3b2acc2e83c4cc238a194703872
2014-02-14 15:35:03 +04:00

38 lines
1.5 KiB
HTML

{% extends "kpi/base_kpi.html" %}
{% block title %}
Example of KPI report
{% endblock %}
{% block scripts %}
<script type="text/javascript">
$(document).ready(function () {
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "commits", module: "openstack"},
"companies", "Mirantis", 5, "Be in top 5 by commits");
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "marks", module: "openstack"},
"engineers", "boris-42", 5, "Be in top 5 by reviews");
goal_position_in_top("kpi_container_position", {release: "icehouse", metric: "marks", module: "glance"},
"engineers", "boris-42", 3, "Be in top 3 among non-core reviewers");
goal_percentage_in_top_less_than("kpi_container_percentage",
{release: "all", metric: "commits", module: "stackalytics"},
"companies", "Mirantis", 0.8, "Mirantis contribution is less than 80%");
goal_metric("kpi_container_position", {release: "icehouse", metric: "bpd", module: "glance", exclude: "core"},
"modules", "glance", 10, "File at least 10 blueprints into Glance");
});
</script>
{% endblock %}
{% block content %}
<h1>Example of KPI report</h1>
<h2>Position in top</h2>
<div id="kpi_container_position"></div>
<h2>Percentage in top</h2>
<div id="kpi_container_percentage"></div>
{% endblock %}