You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ni...@apache.org on 2022/03/16 13:40:53 UTC

[ranger] branch ranger-2.3 updated (85a79f6 -> 8069bd2)

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

ni3galave pushed a change to branch ranger-2.3
in repository https://gitbox.apache.org/repos/asf/ranger.git.


    from 85a79f6  RANGER-3642 : Ranger - Upgrade jquery-ui to 1.13.1
     new 1793c76  RANGER-3660 : [Ranger Admin UI] Improvements in tooltip hints for better user experience
     new 8069bd2  RANGER-3665 : No Data Found messages in Ranger admin UI alarm users

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/webapp/scripts/modules/globalize/message/en.js       | 2 +-
 .../webapp/scripts/views/policies/NRangerPolicyTableLayout.js     | 7 +++----
 .../main/webapp/scripts/views/policies/RangerPolicyTableLayout.js | 8 +++-----
 .../src/main/webapp/templates/policies/RangerPolicyRO_tmpl.html   | 2 +-
 4 files changed, 8 insertions(+), 11 deletions(-)

[ranger] 01/02: RANGER-3660 : [Ranger Admin UI] Improvements in tooltip hints for better user experience

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ni3galave pushed a commit to branch ranger-2.3
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 1793c76b8f4085bad17be416cd6dae7cad27a0e1
Author: Dhaval.Rajpara <dh...@gmail.com>
AuthorDate: Wed Mar 16 17:26:08 2022 +0530

    RANGER-3660 : [Ranger Admin UI] Improvements in tooltip hints for better user experience
    
    Signed-off-by: Nitin Galave <ni...@apache.org>
---
 .../src/main/webapp/scripts/modules/globalize/message/en.js       | 2 +-
 .../webapp/scripts/views/policies/NRangerPolicyTableLayout.js     | 7 +++----
 .../main/webapp/scripts/views/policies/RangerPolicyTableLayout.js | 8 +++-----
 3 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/security-admin/src/main/webapp/scripts/modules/globalize/message/en.js b/security-admin/src/main/webapp/scripts/modules/globalize/message/en.js
index 46e4c19..1a54883 100644
--- a/security-admin/src/main/webapp/scripts/modules/globalize/message/en.js
+++ b/security-admin/src/main/webapp/scripts/modules/globalize/message/en.js
@@ -379,7 +379,7 @@ define(function(require) {
                 type                        :'Policy for all type.',
                 udf                         :'Hive udf.',
                 pluginStatus                :'Plugin Status',
-                clusterName                 :'Name of ambari cluster',
+                clusterName                 :'Name of cluster',
                 zoneName                    :"Name of Zone",
                 policyVersion               :'Policy Version',
                 url        					:'Hive url.',
diff --git a/security-admin/src/main/webapp/scripts/views/policies/NRangerPolicyTableLayout.js b/security-admin/src/main/webapp/scripts/views/policies/NRangerPolicyTableLayout.js
index 18664f7..64c7291 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/NRangerPolicyTableLayout.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/NRangerPolicyTableLayout.js
@@ -514,7 +514,8 @@ define(function(require) {
                 var resourceSearchOpt = _.map(resources, function(resource) {
                     return {
                         'name': resource.name,
-                        'label': resource.label
+                        'label': resource.label,
+                        'description':resource.description
                     };
                 });
                 var PolicyStatusValue = _.map(XAEnums.ActiveStatus, function(status) {
@@ -561,8 +562,6 @@ define(function(require) {
                     info :localization.tt('h.roleMsg'),
                     urlLabel : 'roleName'
                 }];
-                // {text : 'Start Date',label :'startDate'},{text : 'End Date',label :'endDate'},
-                //  {text : 'Today',label :'today'}];
                 var info = {
                     collection: localization.tt('h.collection'),
                     column: localization.tt('lbl.columnName'),
@@ -594,7 +593,7 @@ define(function(require) {
                     return {
                         'text': opt.label,
                         'label': 'resource:' + opt.name,
-                        'info': info[opt.name],
+                        'info': !_.isUndefined(info[opt.name]) ? info[opt.name] : opt.description,
                         'urlLabel': XAUtil.stringToCamelCase(opt.label.toLowerCase()),
                     };
                 });
diff --git a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyTableLayout.js b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyTableLayout.js
index c20bcb9..844d671 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyTableLayout.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyTableLayout.js
@@ -466,7 +466,7 @@ define(function(require){
                                 resources = this.rangerServiceDefModel.get('rowFilterDef')['resources'];
                         }
                         var resourceSearchOpt = _.map(resources, function(resource){
-                                        return { 'name' : resource.name, 'label' : resource.label };
+                                        return { 'name' : resource.name, 'label' : resource.label, 'description':resource.description };
                         });
 			var PolicyStatusValue = _.map(XAEnums.ActiveStatus, function(status) { return { 'label': status.label, 'value': Boolean(status.value)}; });
 	
@@ -479,9 +479,7 @@ define(function(require){
                                                {text : "Role Name",   label :"role" ,  info :localization.tt('h.roleMsg'), urlLabel : 'roleName'},
                                                {text : "Policy Label",   label :"policyLabelsPartial" ,  info :localization.tt('h.policyLabelsinfo'), urlLabel : 'policyLabel'},
                                                ];
-			                     // {text : 'Start Date',label :'startDate'},{text : 'End Date',label :'endDate'},
-				                 //  {text : 'Today',label :'today'}];
-                        var info = { collection : localization.tt('h.collection')    , column   :localization.tt('lbl.columnName'),
+			            var info = { collection : localization.tt('h.collection')    , column   :localization.tt('lbl.columnName'),
                                          'column-family':localization.tt('msg.columnfamily') , database :localization.tt('h.database'),
                                           entity        :localization.tt('h.entity') , keyname  :localization.tt('lbl.keyName'),
                                           path:localization.tt('h.path'), queue: localization.tt('h.queue'), service:localization.tt('h.serviceNameMsg'),
@@ -497,7 +495,7 @@ define(function(require){
                                         return {
                                                 'text': opt.label,
                                                 'label': 'resource:'+ opt.name,
-                                                'info' : info[opt.name],
+                                                'info' : !_.isUndefined(info[opt.name]) ? info[opt.name] : opt.description,
                                                 'urlLabel' : XAUtil.stringToCamelCase(opt.label.toLowerCase()),
                                         };
 			});

[ranger] 02/02: RANGER-3665 : No Data Found messages in Ranger admin UI alarm users

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ni3galave pushed a commit to branch ranger-2.3
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 8069bd2b8dbe1f08909d73f6ae35d8fc7d86a5e7
Author: Dhaval.Rajpara <dh...@gmail.com>
AuthorDate: Tue Mar 15 18:09:03 2022 +0530

    RANGER-3665 : No Data Found messages in Ranger admin UI alarm users
    
    Signed-off-by: Nitin Galave <ni...@apache.org>
---
 .../src/main/webapp/templates/policies/RangerPolicyRO_tmpl.html         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security-admin/src/main/webapp/templates/policies/RangerPolicyRO_tmpl.html b/security-admin/src/main/webapp/templates/policies/RangerPolicyRO_tmpl.html
index f415577..1edfe24 100644
--- a/security-admin/src/main/webapp/templates/policies/RangerPolicyRO_tmpl.html
+++ b/security-admin/src/main/webapp/templates/policies/RangerPolicyRO_tmpl.html
@@ -199,7 +199,7 @@
                 </thead>
                 <tbody>
                     {{#ifCond this.policyItems.length '==' "0"}}
-                        <td class="emptySet text-muted" colspan='{{this.headers.length}}'>No Data Found !!</td>
+                        <td class="emptySet text-muted" colspan='{{this.headers.length}}'>No policy items of "{{this.title}}" are present</td>
                     {{else}}
                         {{#each this.policyItems}}
                             <tr>