You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2018/04/27 11:04:38 UTC

[ambari] branch trunk updated: AMBARI-23011 Ranger LB URL is pointing to ranger port by default when we click on Quick link

This is an automated email from the ASF dual-hosted git repository.

atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 984bd4e  AMBARI-23011 Ranger LB URL is pointing to ranger port by default when we click on Quick link
984bd4e is described below

commit 984bd4e2b603a8acf928b2c6359bb702b9f93cc8
Author: Andrii Tkach <at...@apache.org>
AuthorDate: Thu Apr 26 16:43:47 2018 +0300

    AMBARI-23011 Ranger LB URL is pointing to ranger port by default when we click on Quick link
---
 ambari-web/app/views/common/quick_view_link_view.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ambari-web/app/views/common/quick_view_link_view.js b/ambari-web/app/views/common/quick_view_link_view.js
index ffdeb2e..816fca3 100644
--- a/ambari-web/app/views/common/quick_view_link_view.js
+++ b/ambari-web/app/views/common/quick_view_link_view.js
@@ -338,7 +338,7 @@ App.QuickLinksView = Em.View.extend({
     if (serviceName === 'MAPREDUCE2' && response) {
       var portConfig = Em.get(link, 'port');
       var siteName = Em.get(portConfig, 'site');
-      var siteConfigs = this.get('configProperties').findProperty('type', siteName).properties;
+      const siteConfigs = this.get('configProperties').findProperty('type', siteName).properties;
       var hostPortConfigValue = siteConfigs[Em.get(portConfig, protocol + '_config')];
       if (!Em.isNone(hostPortConfigValue)) {
         var hostPortValue = hostPortConfigValue.match(new RegExp('([\\w\\d.-]*):(\\d+)'));
@@ -348,9 +348,12 @@ App.QuickLinksView = Em.View.extend({
         }
       }
     } else if (serviceName === 'RANGER') {
-      var siteConfigs = this.get('configProperties').findProperty('type', 'admin-properties').properties;
+      const siteConfigs = this.get('configProperties').findProperty('type', 'admin-properties').properties;
       if (siteConfigs['policymgr_external_url']) {
-        host = siteConfigs['policymgr_external_url'].split('://')[1].split(':')[0];
+        return {
+          label: link.label,
+          url: siteConfigs['policymgr_external_url']
+        }
       }
     }
 

-- 
To stop receiving notification emails like this one, please contact
atkach@apache.org.