ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From niti...@apache.org
Subject ambari git commit: AMBARI-20234 : HiveView2.0 - settings not taking effect : added global settings to forcedContent before sending (nitirajrathore)
Date Wed, 01 Mar 2017 09:20:01 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 1df9a82ac -> 20cef01cd


AMBARI-20234 : HiveView2.0 - settings not taking effect : added global settings to forcedContent
before sending (nitirajrathore)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/20cef01c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/20cef01c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/20cef01c

Branch: refs/heads/branch-2.5
Commit: 20cef01cd7ce5d07c50cb473afbdf54689ee9220
Parents: 1df9a82
Author: Nitiraj Singh Rathore <nitiraj.rathore@gmail.com>
Authored: Wed Mar 1 14:48:29 2017 +0530
Committer: Nitiraj Singh Rathore <nitiraj.rathore@gmail.com>
Committed: Wed Mar 1 14:48:29 2017 +0530

----------------------------------------------------------------------
 .../hive20/src/main/resources/ui/app/routes/queries/query.js    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/20cef01c/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js b/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js
index 4ac93db..62e5562 100644
--- a/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js
+++ b/contrib/views/hive20/src/main/resources/ui/app/routes/queries/query.js
@@ -44,7 +44,7 @@ export default Ember.Route.extend(UILoggerMixin, {
     this.store.findAll('setting').then((data) => {
       let localStr = '';
       data.forEach(x => {
-        localStr = localStr + 'set '+ x.get('key')+ '='+ x.get('value') + '\n';
+        localStr = localStr + 'set '+ x.get('key')+ '='+ x.get('value') + ';\n';
       });
       this.set('globalSettings', localStr);
     });
@@ -296,12 +296,13 @@ export default Ember.Route.extend(UILoggerMixin, {
 
       let globalSettings = this.get('globalSettings');
 
+      let forcedContent = globalSettings + queryInput;
       this.send('showQueryResultContainer');
 
       let payload ={
         "title":worksheetTitle,
         "dataBase":dbid,
-        "forcedContent":queryInput,
+        "forcedContent":forcedContent,
         "referrer":"job",
         "globalSettings":globalSettings};
 


Mime
View raw message