Fix #411 : Remove e10s setting from telemetry dashboards

This commit is contained in:
Sylvia23 2018-02-28 20:56:38 +05:30 коммит произвёл Chris H-C
Родитель ead6c6705d
Коммит 7f0553dc2a
5 изменённых файлов: 3 добавлений и 59 удалений

Просмотреть файл

@ -43,8 +43,6 @@
<select id="filter-os" class="multiselect" title="Target OS" data-all-selected="any OS" data-n-selected="OSs" multiple></select>
<select id="filter-arch" class="multiselect" title="Product architecture" data-all-selected="any architecture" data-n-selected="architectures" multiple></select>
with
<select id="filter-e10s" class="multiselect" title="e10s setting" data-all-selected="any e10s setting" multiple></select>
as
<select id="filter-process-type" class="multiselect" title="Process type" data-all-selected="any process type"></select>
and compare by
<select id="compare" class="multiselect" title="Filter name to compare options for">
@ -52,7 +50,6 @@
<option value="os">target OS</option>
<option value="osVersion">target OS version</option>
<option value="architecture">product architecture</option>
<option value="e10sEnabled">e10s setting</option>
<option value="child">process type</option>
</select>
</h2>

Просмотреть файл

@ -51,8 +51,6 @@
on
<select id="filter-os" class="multiselect" title="Target OS" data-all-selected="any OS" data-n-selected="OSs" multiple></select>
<select id="filter-arch" class="multiselect" title="Product architecture" data-all-selected="any architecture" data-n-selected="architectures" multiple></select>
with
<select id="filter-e10s" class="multiselect" title="e10s setting" data-all-selected="any e10s setting" multiple></select>
as
<select id="filter-process-type" class="multiselect" title="Process type" data-all-selected="any process type"></select>
</h2>

Просмотреть файл

@ -202,7 +202,7 @@ function loadStateFromUrlAndCookie() {
pageState.min_channel_version = null;
pageState.max_channel_version = null;
pageState.product = ["Firefox"];
pageState.os = pageState.arch = pageState.e10s = pageState.processType =
pageState.os = pageState.arch = pageState.processType =
null;
pageState.compare = "";
pageState.keys = [];
@ -266,12 +266,6 @@ function loadStateFromUrlAndCookie() {
.filter(function (v) {
return v !== "";
}) : null;
pageState.e10s = typeof pageState.e10s === "string" && pageState.e10s !== "" &&
pageState.e10s !== "null" ?
pageState.e10s.split("!")
.filter(function (v) {
return v !== "";
}) : null;
pageState.processType = typeof pageState.processType === "string" &&
pageState.processType !== "" && pageState.processType !== "null" ?
pageState.processType.split("!")
@ -279,7 +273,7 @@ function loadStateFromUrlAndCookie() {
return v !== "";
}) : null;
pageState.compare = typeof pageState.compare === "string" && ["", "os",
"osVersion", "architecture", "e10sEnabled", "child"].indexOf(pageState.compare) >=
"osVersion", "architecture", "child"].indexOf(pageState.compare) >=
0 ?
pageState.compare : "";
@ -494,10 +488,6 @@ function getHumanReadableOptions(filterName, options) {
"x86": "32-bit",
"x86-64": "64-bit"
};
var e10sNames = {
"false": "no e10s",
"true": "e10s"
};
var processTypeNames = {
"false": "main process",
"true": "child process"
@ -604,11 +594,6 @@ function getHumanReadableOptions(filterName, options) {
return [option, archNames.hasOwnProperty(option) ? archNames[option] :
option];
});
} else if (filterName === "e10sEnabled") {
return options.map(function (option) {
return [option, e10sNames.hasOwnProperty(option) ? e10sNames[option] :
option];
});
} else if (filterName === "child") {
return options.map(function (option) {
return [option, processTypeNames.hasOwnProperty(option) ?

Просмотреть файл

@ -18,7 +18,6 @@ $(function () {
"application": $("#filter-product"),
"os": $("#filter-os"),
"architecture": $("#filter-arch"),
"e10sEnabled": $("#filter-e10s"),
"child": $("#filter-process-type"),
};
gAxesList = [
@ -104,14 +103,6 @@ $(function () {
.multiselect("selectAll", false)
.multiselect("updateButtonText");
}
if (gInitialPageState.e10s !== null) {
$("#filter-e10s")
.multiselect("select", gInitialPageState.e10s);
} else {
$("#filter-e10s")
.multiselect("selectAll", false)
.multiselect("updateButtonText");
}
if (gInitialPageState.processType !== null) {
$("#filter-process-type")
.multiselect("select", gInitialPageState.processType);
@ -156,7 +147,6 @@ $(function () {
"#filter-product",
"#filter-os",
"#filter-arch",
"#filter-e10s",
"#filter-process-type",
"#compare",
].join(",")).change(function (e) {
@ -444,8 +434,6 @@ function updateOptions(callback) {
"application", deduplicate(optionsMap.application || [])));
multiselectSetOptions($("#filter-arch"), getHumanReadableOptions(
"architecture", deduplicate(optionsMap.architecture || [])));
multiselectSetOptions($("#filter-e10s"), getHumanReadableOptions(
"e10sEnabled", deduplicate(optionsMap.e10sEnabled || [])));
multiselectSetOptions($("#filter-process-type"),
getHumanReadableOptions("child", deduplicate(optionsMap.child || []))
);
@ -1690,12 +1678,6 @@ function saveStateToUrlAndCookie() {
.size()) {
gInitialPageState.arch = selected;
}
var selected = $("#filter-e10s")
.val() || [];
if (selected.length !== $("#filter-e10s option")
.size()) {
gInitialPageState.e10s = selected;
}
var selected = $("#filter-process-type")
.val() || [];
if (selected.length !== $("#filter-process-type option")

Просмотреть файл

@ -53,7 +53,6 @@ $(function () {
"application": $("#filter-product"),
"os": $("#filter-os"),
"architecture": $("#filter-arch"),
"e10sEnabled": $("#filter-e10s"),
"child": $("#filter-process-type"),
};
gInitialPageState = loadStateFromUrlAndCookie();
@ -138,14 +137,6 @@ $(function () {
.multiselect("selectAll", false)
.multiselect("updateButtonText");
}
if (gInitialPageState.e10s !== null) {
$("#filter-e10s")
.multiselect("select", gInitialPageState.e10s);
} else {
$("#filter-e10s")
.multiselect("selectAll", false)
.multiselect("updateButtonText");
}
if (gInitialPageState.processType !== null) {
$("#filter-process-type")
.multiselect("select", gInitialPageState.processType);
@ -256,7 +247,7 @@ $(function () {
});
});
$(
"#measure, input[name=build-time-toggle], input[name=sanitize-toggle], #aggregates, #filter-product, #filter-os, #filter-arch, #filter-e10s, #filter-process-type"
"#measure, input[name=build-time-toggle], input[name=sanitize-toggle], #aggregates, #filter-product, #filter-os, #filter-arch, #filter-process-type"
)
.change(function (e) {
var $this = $(this);
@ -463,9 +454,6 @@ function updateOptions(callback) {
multiselectSetOptions($("#filter-arch"),
getHumanReadableOptions("architecture", deduplicate(
optionsMap.architecture)));
multiselectSetOptions($("#filter-e10s"),
getHumanReadableOptions("e10sEnabled", deduplicate(
optionsMap.e10sEnabled)));
multiselectSetOptions($("#filter-process-type"),
getHumanReadableOptions("child", deduplicate(optionsMap.child))
);
@ -986,12 +974,6 @@ function saveStateToUrlAndCookie() {
.size()) {
gInitialPageState.arch = selected;
}
var selected = $("#filter-e10s")
.val() || [];
if (selected.length !== $("#filter-e10s option")
.size()) {
gInitialPageState.e10s = selected;
}
var selected = $("#filter-process-type")
.val() || [];
if (selected.length !== $("#filter-process-type option")