aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jco...@apache.org
Subject aurora git commit: Use a copy of the table config to avoid contaminating pagination settings.
Date Wed, 26 Aug 2015 20:30:12 GMT
Repository: aurora
Updated Branches:
  refs/heads/master 3fdbc8c16 -> 1a3ed7f11


Use a copy of the table config to avoid contaminating pagination settings.

Reviewed at https://reviews.apache.org/r/37809/


Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/1a3ed7f1
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/1a3ed7f1
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/1a3ed7f1

Branch: refs/heads/master
Commit: 1a3ed7f11118e03995eb646bb4c6ce29150bf342
Parents: 3fdbc8c
Author: Joshua Cohen <jcohen@apache.org>
Authored: Wed Aug 26 15:29:49 2015 -0500
Committer: Joshua Cohen <jcohen@apache.org>
Committed: Wed Aug 26 15:29:49 2015 -0500

----------------------------------------------------------------------
 src/main/resources/scheduler/assets/js/services.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/1a3ed7f1/src/main/resources/scheduler/assets/js/services.js
----------------------------------------------------------------------
diff --git a/src/main/resources/scheduler/assets/js/services.js b/src/main/resources/scheduler/assets/js/services.js
index 085a3d9..dbad59b 100644
--- a/src/main/resources/scheduler/assets/js/services.js
+++ b/src/main/resources/scheduler/assets/js/services.js
@@ -720,6 +720,10 @@
           statsUrlPrefix + role + '.' + environment + '.' + job;
       }
 
+      function clone(obj) {
+        return JSON.parse(JSON.stringify(obj));
+      }
+
       return {
         taskIdColumn:  {
           label: 'Task ID',
@@ -735,8 +739,8 @@
           $scope.activeTasksTableColumns = baseColumns;
           $scope.completedTasksTableColumns = completedTaskColumns;
 
-          $scope.activeTasksTableConfig = baseTableConfig;
-          $scope.completedTasksTableConfig = baseTableConfig;
+          $scope.activeTasksTableConfig = clone(baseTableConfig);
+          $scope.completedTasksTableConfig = clone(baseTableConfig);
 
           auroraClient.getTasksWithoutConfigs(
               $scope.role,


Mime
View raw message