You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2014/02/26 13:54:37 UTC
git commit: AMBARI-4838. Revisiting a Hive Job does not show DAG
diagram. (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/trunk c4a2523e0 -> 225fb253c
AMBARI-4838. Revisiting a Hive Job does not show DAG diagram. (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/225fb253
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/225fb253
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/225fb253
Branch: refs/heads/trunk
Commit: 225fb253c66e3573e9e9577cac5069de829ecbe9
Parents: c4a2523
Author: Alex Antonenko <hi...@gmail.com>
Authored: Wed Feb 26 14:51:01 2014 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Wed Feb 26 14:51:18 2014 +0200
----------------------------------------------------------------------
ambari-web/app/mappers/jobs/hive_job_mapper.js | 2 +-
ambari-web/app/routes/main.js | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/225fb253/ambari-web/app/mappers/jobs/hive_job_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/jobs/hive_job_mapper.js b/ambari-web/app/mappers/jobs/hive_job_mapper.js
index 126ed2e..0a411be 100644
--- a/ambari-web/app/mappers/jobs/hive_job_mapper.js
+++ b/ambari-web/app/mappers/jobs/hive_job_mapper.js
@@ -56,7 +56,7 @@ App.hiveJobMapper = App.QuickDataMapper.create({
hiveJob.id = json.entity;
hiveJob.startTime = json.starttime;
hiveJob.endTime = json.endtime;
- json.otherinfo.query = $.parseJSON(json.otherinfo.query);
+ json.otherinfo.query = $.parseJSON(json.otherinfo.query).query;
hiveJob.stages = [];
var stagePlans = json.otherinfo.query.queryPlan["STAGE PLANS"];
for ( var stage in stagePlans) {
http://git-wip-us.apache.org/repos/asf/ambari/blob/225fb253/ambari-web/app/routes/main.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/main.js b/ambari-web/app/routes/main.js
index dc7cbf5..80396eb 100644
--- a/ambari-web/app/routes/main.js
+++ b/ambari-web/app/routes/main.js
@@ -151,6 +151,9 @@ module.exports = Em.Route.extend({
router.get('mainHiveJobDetailsController').loadJobDetails();
router.get('mainJobsController').updateJobs('mainHiveJobDetailsController', 'loadJobDetails');
}
+ },
+ exit: function(router) {
+ router.get('mainHiveJobDetailsController').set('loaded', false);
}
}),
showJobDetails : function(router, event) {