change default values in the UI
1. yRange is set to 0-120 minutes. This makes the gallery plots easier to compare. 2. Set groupBy to pod/method/build. That is what I use the most and I think this will help in most cases.
This commit is contained in:
@@ -775,7 +775,7 @@ var rootView = new Vue({
|
|||||||
|
|
||||||
response.forEach( (item, index) => { options.push({text: item, value: item}); } );
|
response.forEach( (item, index) => { options.push({text: item, value: item}); } );
|
||||||
|
|
||||||
const groupByDefaults = GetURLParameterArray('groupBy');
|
const groupByDefaults = GetURLParameterArray('groupBy', ['pod', 'method', 'build']);
|
||||||
|
|
||||||
for (var i = 0; i < 3; i++){
|
for (var i = 0; i < 3; i++){
|
||||||
self.searchBar.groupByKeys.push({
|
self.searchBar.groupByKeys.push({
|
||||||
@@ -819,8 +819,8 @@ var data = {
|
|||||||
aggregate: GetURLParameter('aggregate','NONE'),
|
aggregate: GetURLParameter('aggregate','NONE'),
|
||||||
yRange: {
|
yRange: {
|
||||||
min: GetURLParameter('yRangeMin','0'),
|
min: GetURLParameter('yRangeMin','0'),
|
||||||
max: GetURLParameter('yRangeMax','999'),
|
max: GetURLParameter('yRangeMax','120'),
|
||||||
unit: GetURLParameter('yRangeUnit','AUTOMATIC')
|
unit: GetURLParameter('yRangeUnit','MINUTES')
|
||||||
},
|
},
|
||||||
keyOutside: GetURLParameterBoolean('keyOutside', 'false'),
|
keyOutside: GetURLParameterBoolean('keyOutside', 'false'),
|
||||||
|
|
||||||
@@ -1133,9 +1133,9 @@ function GetURLParameter(paramName, defaultValue)
|
|||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
function GetURLParameterArray(paramName)
|
function GetURLParameterArray(paramName, defaults)
|
||||||
{
|
{
|
||||||
var result = [];
|
var result = defaults != undefined ? defaults : [];
|
||||||
var pageURL = window.location.search.substring(1);
|
var pageURL = window.location.search.substring(1);
|
||||||
var URLVariables = pageURL.split('&');
|
var URLVariables = pageURL.split('&');
|
||||||
for (var i = 0; i < URLVariables.length; i++)
|
for (var i = 0; i < URLVariables.length; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user