Repository: zeppelin
Updated Branches:
  refs/heads/branch-0.6 3945da32c -> 9bb21d981


 [ZEPPELIN-1040] Show the time when the result is updated

As per existing usage, the time shown in end of each paragraph is the time the 
paragraph is updated not when the paragraph is actually executed/run.

_" Took 10 sec. Last updated by anonymous at **August 26 2016, 1:52:01 PM.** "_

PR is aimed at changing the existing usage to show when the paragraph is last 
executed as this gives  clarification to users about the executed time of 
paragraph

 Improvement

* [ ] - Task

https://issues.apache.org/jira/browse/ZEPPELIN-1040

1. Start the server and create a new note book
2. create a new paragraph and execute the paragraph
3. Now rerun the paragraph, the time should get updated now inline with 
execution of the paragraph

* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: rajarajan-g <rajarajan.gane...@imaginea.com>

Closes #1367 from rajarajan-g/ZEPPELIN-1040 and squashes the following commits:

d30f1b2 [rajarajan-g] code changed for showing last run time after execution of 
paragraph

(cherry picked from commit f1a2471302ed3a6d89f70e3b85c9c20eeddf2056)
Signed-off-by: Damien CORNEAU <cornead...@gmail.com>


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

Branch: refs/heads/branch-0.6
Commit: 9bb21d981e626d4703d4c1b85eb7b0d685fb69a8
Parents: 3945da3
Author: rajarajan-g <rajarajan.gane...@imaginea.com>
Authored: Fri Aug 26 14:00:10 2016 +0530
Committer: Damien CORNEAU <cornead...@gmail.com>
Committed: Thu Sep 1 10:43:43 2016 +0900

----------------------------------------------------------------------
 .../src/app/notebook/paragraph/paragraph.controller.js         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zeppelin/blob/9bb21d98/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js 
b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
index 6cf83b1..6b93731 100644
--- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
+++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
@@ -994,8 +994,8 @@ angular.module('zeppelinWebApp')
     }
     var user = (pdata.user === undefined || pdata.user === null) ? 'anonymous' 
: pdata.user;
     var desc = 'Took ' + moment.duration((timeMs / 1000), 'seconds').format('h 
[hrs] m [min] s [sec]') +
-      '. Last updated by ' + user + ' at ' + 
moment(pdata.dateUpdated).format('MMMM DD YYYY, h:mm:ss A') + '.';
-    if ($scope.isResultOutdated()){
+      '. Last updated by ' + user + ' at ' + 
moment(pdata.dateFinished).format('MMMM DD YYYY, h:mm:ss A') + '.';
+    if ($scope.isResultOutdated()) {
       desc += ' (outdated)';
     }
     return desc;
@@ -1102,7 +1102,7 @@ angular.module('zeppelinWebApp')
       $scope.handleFocus(true);
     } else {
       $scope.editor.blur();
-      var isDigestPass = true;      
+      var isDigestPass = true;
       $scope.handleFocus(false, isDigestPass);
     }
   });

Reply via email to