Repository: tez
Updated Branches:
  refs/heads/master f1ab3c38a -> 81a12216c


TEZ-2847. Tez UI: Task details doesn't gets updated on manual refresh after job 
complete (sree via pramachandran)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/81a12216
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/81a12216
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/81a12216

Branch: refs/heads/master
Commit: 81a12216cb2e168b98c80bff6671a9997ffae3dc
Parents: f1ab3c3
Author: Prakash Ramachandran <[email protected]>
Authored: Tue Sep 22 23:39:45 2015 +0530
Committer: Prakash Ramachandran <[email protected]>
Committed: Tue Sep 22 23:39:45 2015 +0530

----------------------------------------------------------------------
 CHANGES.txt                                              |  1 +
 .../app/scripts/controllers/task_index_controller.js     | 11 +++++++++++
 .../scripts/controllers/task_task_attempts_controller.js | 11 +++++++++++
 3 files changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/81a12216/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 18ac20d..84c0679 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -189,6 +189,7 @@ Release 0.7.1: Unreleased
 INCOMPATIBLE CHANGES
 
 ALL CHANGES
+  TEZ-2847. Tez UI: Task details doesn't gets updated on manual refresh after 
job complete
   TEZ-2843. Tez UI: Show error if in progress fails due to AM not reachable
   TEZ-2842. Tez UI: Update Tez App details page while in-progress
   TEZ-2834. Make Tez preemption resilient to incorrect free resource reported

http://git-wip-us.apache.org/repos/asf/tez/blob/81a12216/tez-ui/src/main/webapp/app/scripts/controllers/task_index_controller.js
----------------------------------------------------------------------
diff --git 
a/tez-ui/src/main/webapp/app/scripts/controllers/task_index_controller.js 
b/tez-ui/src/main/webapp/app/scripts/controllers/task_index_controller.js
index 1772e9c..3d49248 100644
--- a/tez-ui/src/main/webapp/app/scripts/controllers/task_index_controller.js
+++ b/tez-ui/src/main/webapp/app/scripts/controllers/task_index_controller.js
@@ -29,4 +29,15 @@ App.TaskIndexController = 
Em.ObjectController.extend(App.ModelRefreshMixin, {
       this.get('hasFailedTaskAttempts'));
   }.property('id', 'taskStatus', 'hasFailedTaskAttempts'),
 
+  load: function () {
+    var model = this.get('content');
+    if(model && $.isFunction(model.reload)) {
+      model.reload().then(function(record) {
+        if(record.get('isDirty')) {
+          record.rollback();
+        }
+      });
+    }
+  },
+
 });
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tez/blob/81a12216/tez-ui/src/main/webapp/app/scripts/controllers/task_task_attempts_controller.js
----------------------------------------------------------------------
diff --git 
a/tez-ui/src/main/webapp/app/scripts/controllers/task_task_attempts_controller.js
 
b/tez-ui/src/main/webapp/app/scripts/controllers/task_task_attempts_controller.js
index a0eab4d..87504e2 100644
--- 
a/tez-ui/src/main/webapp/app/scripts/controllers/task_task_attempts_controller.js
+++ 
b/tez-ui/src/main/webapp/app/scripts/controllers/task_task_attempts_controller.js
@@ -241,4 +241,15 @@ App.TaskAttemptIndexController = 
Em.ObjectController.extend(App.ModelRefreshMixi
     return 
App.Helpers.misc.getStatusClassForEntity(this.get('taskAttemptStatus'));
   }.property('id', 'status', 'counterGroups'),
 
+  load: function () {
+    var model = this.get('content');
+    if(model && $.isFunction(model.reload)) {
+      model.reload().then(function(record) {
+        if(record.get('isDirty')) {
+          record.rollback();
+        }
+      });
+    }
+  },
+
 });

Reply via email to