Always aggregate analytics data by hour Do not allow dashboard users to choose which type of aggregation to perform when running wizard: coarse-grained aggregation, such as month or year is not useful to be plotted on a time-based graph and it has been cause of confusion for users. Feature: Issue 10070 Change-Id: I6bb613f25fac4c1457865cd36cb3d843a4a854ca
diff --git a/README.md b/README.md index ade66a3..d17cd7c 100644 --- a/README.md +++ b/README.md
@@ -39,7 +39,6 @@ Different parameters can be configured: * **Dashboard name** (required): name of the dashboard you are about to create * **Projects prefix** (optional): prefix of the projects you want to import, i.e.: to import all the projects under the Gerrit namespace, you can specify `gerrit/`. *Note: It is not a regular expression.* -* **Aggregation type** (required): the data can be aggregated by `email only`, by `email per hour`, by `email per day`, by `email per month` or by `email per year`. * **Date time-frame** (optional): time window you want to collect data about * **Username/Password** (optional): credentials for Gerrit API, if basic auth is needed
diff --git a/resources/wizard.png b/resources/wizard.png index 3f37b7a..6a9d42a 100644 --- a/resources/wizard.png +++ b/resources/wizard.png Binary files differ
diff --git a/src/main/resources/static/analytics-dashboard.html b/src/main/resources/static/analytics-dashboard.html index c0f0584..3488804 100644 --- a/src/main/resources/static/analytics-dashboard.html +++ b/src/main/resources/static/analytics-dashboard.html
@@ -35,20 +35,6 @@ <div class="col-lg-3"> <input data-toggle="tooltip" title="Prefix of the projects to import, not a regular expression. I.e.: the 'gerrit/' prefix will import all the projects starting with 'gerrit/'" id="input-project-prefix" type="text"> </div> - <div class="col-lg-4"> - <div class="dropdown"> - <button class="btn btn-primary dropdown-toggle" type="button" id="aggregate" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> - Aggregation type - </button> - <ul class="dropdown-menu" aria-labelledby="aggregate"> - <li><a href="#" data-value="email_hour">Author per hour</a></li> - <li><a href="#" data-value="email_day">Author per day</a></li> - <li><a href="#" data-value="email_month">Author per month</a></li> - <li><a href="#" data-value="email_year">Author per year</a></li> - <li><a href="#" data-value="email">Author Only</a></li><span class="caret"></span> - </ul> - </div> - </div> </div> <hr>
diff --git a/src/main/resources/static/js/analyticswizard.js b/src/main/resources/static/js/analyticswizard.js index 3407b07..0ebe663 100644 --- a/src/main/resources/static/js/analyticswizard.js +++ b/src/main/resources/static/js/analyticswizard.js
@@ -92,7 +92,7 @@ function getRequestBody() { var etlConfigRaw = { - aggregate: $("#aggregate").val(), + aggregate: "email_hour", since: $("#since").val(), until: $("#until").val(), project_prefix: $("#input-project-prefix").val(),