From 8e4cd5d851211837cdafbeb921ec6b91bac9ff87 Mon Sep 17 00:00:00 2001 From: William Lachance Date: Tue, 22 Dec 2015 15:43:00 -0500 Subject: [PATCH] Bug 1234621 - Misc. perfherder cleanup --- ui/js/controllers/perf/alerts.js | 16 ++++------------ ui/partials/perf/comparectrl.html | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/ui/js/controllers/perf/alerts.js b/ui/js/controllers/perf/alerts.js index c06ef5f94..6cb9ad92b 100644 --- a/ui/js/controllers/perf/alerts.js +++ b/ui/js/controllers/perf/alerts.js @@ -83,14 +83,13 @@ perf.controller( perf.controller('AlertsCtrl', [ '$state', '$stateParams', '$scope', '$rootScope', '$http', '$q', '$modal', - 'thUrl', 'ThRepositoryModel', 'ThOptionCollectionModel', 'ThResultSetModel', - 'thDefaultRepo', 'PhFramework', 'PhSeries', 'PhAlerts', 'phTimeRanges', + 'thUrl', 'ThOptionCollectionModel', 'ThResultSetModel', + 'PhFramework', 'PhSeries', 'PhAlerts', 'phTimeRanges', 'phDefaultTimeRangeValue', 'phAlertResolutionMap', 'dateFilter', 'thDateFormat', function AlertsCtrl($state, $stateParams, $scope, $rootScope, $http, $q, - $modal, - thUrl, ThRepositoryModel, ThOptionCollectionModel, - ThResultSetModel, thDefaultRepo, PhFramework, + $modal, thUrl, ThOptionCollectionModel, + ThResultSetModel, PhFramework, PhSeries, PhAlerts, phTimeRanges, phDefaultTimeRangeValue, phAlertResolutionMap, dateFilter, thDateFormat) { @@ -103,7 +102,6 @@ perf.controller('AlertsCtrl', [ }; $scope.phAlertResolutionMap = phAlertResolutionMap; - // these methods $scope.changeAlertSummaryStatus = function(alertSummary, status) { PhAlerts.changeAlertSummaryStatus( alertSummary.id, status).then(function() { @@ -325,12 +323,6 @@ perf.controller('AlertsCtrl', [ function(frameworks) { $scope.frameworks = frameworks.data; }), - ThRepositoryModel.get_list().then(function(response) { - $scope.projects = response.data; - $scope.selectedProject = _.findWhere($scope.projects, { - name: thDefaultRepo ? thDefaultRepo : thDefaultRepo - }); - }), ThOptionCollectionModel.get_map().then( function(optionCollectionMap) { $scope.optionCollectionMap = optionCollectionMap; diff --git a/ui/partials/perf/comparectrl.html b/ui/partials/perf/comparectrl.html index c4365b51f..76076e7ca 100644 --- a/ui/partials/perf/comparectrl.html +++ b/ui/partials/perf/comparectrl.html @@ -22,7 +22,7 @@  
- +