Repository: tez
Updated Branches:
  refs/heads/branch-0.7 cd80d9ab5 -> 9d5e12728


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

(cherry picked from commit 81a12216cb2e168b98c80bff6671a9997ffae3dc)

Conflicts:
        CHANGES.txt


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

Branch: refs/heads/branch-0.7
Commit: 9d5e127282fc6f722b1ef5172d3496b51c7101e9
Parents: cd80d9a
Author: Prakash Ramachandran <[email protected]>
Authored: Tue Sep 22 23:39:45 2015 +0530
Committer: Prakash Ramachandran <[email protected]>
Committed: Tue Sep 22 23:41:57 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/9d5e1272/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 9fc3555..2138d7c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -6,6 +6,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-2844. Backport TEZ-2775 to branch-0.7. Improve and consolidate logging 
in Runtime components.
   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

http://git-wip-us.apache.org/repos/asf/tez/blob/9d5e1272/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/9d5e1272/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