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 2020/11/10 10:48:36 UTC

[ranger] branch ranger-2.2 updated (6ac6943 -> 51da2b3)

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

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


    from 6ac6943  RANGER-3068: Added code to handle error during initialization as well as while updating users, group, and memberships to ranger admin
     new 67a64a4  RANGER-3073 : Incorrect UI hint message for password validation in FIPS environment
     new 51da2b3  RANGER-3076 : [New UI] if service side bar expanded then include/exclude toggle button in hive policy gets shrink

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:
 .../webapp/scripts/modules/globalize/message/en.js |  2 +-
 .../scripts/views/policies/RangerPolicyCreate.js   | 11 +++---
 security-admin/src/main/webapp/styles/xa.css       | 43 +++++++++++++++++++++-
 3 files changed, 49 insertions(+), 7 deletions(-)


[ranger] 01/02: RANGER-3073 : Incorrect UI hint message for password validation in FIPS environment

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.2
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 67a64a4a2c5c859613759ae77b8ff0094207e0f3
Author: Nitin Galave <ni...@apache.org>
AuthorDate: Sun Nov 8 06:30:46 2020 +0530

    RANGER-3073 : Incorrect UI hint message for password validation in FIPS environment
---
 security-admin/src/main/webapp/scripts/modules/globalize/message/en.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 0989976..4c44229 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
@@ -519,7 +519,7 @@ define(function(require) {
 				newPasswordError       :'Invalid Password. Minimum 8 characters with min one alphabet and one numeric.',
 				emailIdError           : 'Please enter valid email address.',
 				enterValidName         : 'Please enter valid name.',
-				passwordError          :'Password should be minimum 8 characters with min one alphabet and one numeric.',
+				passwordError          :'Password should be minimum 8 characters with min one alphabet and one numeric. For FIPS environment password should be minimum 14 characters with min one alphabet and one numeric.',
 				userNameValidationMsg  :'1. User name should be start with alphabet / numeric / underscore / non-us characters.<br> 2. Allowed special character ,._\-+/@= and space. <br>3. Name length should be greater than one.',
 				groupNameValidationMsg :'1. Group name should be start with alphabet / numeric / underscore / non-us characters.<br> 2. Allowed special character ,._\-+/@= and space. <br>3. Name length should be greater than one.',
                 firstNameValidationMsg :'1. First name should be start with alphabet / numeric / underscore / non-us characters.<br> 2. Allowed special character ._-@ and space. <br>3. Name length should be greater than one.',


[ranger] 02/02: RANGER-3076 : [New UI] if service side bar expanded then include/exclude toggle button in hive policy gets shrink

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.2
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 51da2b38337fb849694a2cfb95ca3cf5c8752a0f
Author: Nitin Galave <ni...@apache.org>
AuthorDate: Mon Nov 9 23:01:11 2020 +0530

    RANGER-3076 : [New UI] if service side bar expanded then include/exclude toggle button in hive policy gets shrink
---
 .../scripts/views/policies/RangerPolicyCreate.js   | 11 +++---
 security-admin/src/main/webapp/styles/xa.css       | 43 +++++++++++++++++++++-
 2 files changed, 48 insertions(+), 6 deletions(-)

diff --git a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyCreate.js b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyCreate.js
index f5ecc19..65c4f66 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyCreate.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyCreate.js
@@ -154,11 +154,12 @@ define(function(require){
 
 		/** on render callback */
 		onRender: function() {
-			// if(localStorage.getItem('setOldUI') == "false" || localStorage.getItem('setOldUI') == null) {
-			// 	App.rContent.$el.addClass('expanded-contant');
-			// } else {
-			// 	App.rContent.$el.removeClass('expanded-contant');
-			// }
+			if((localStorage.getItem('setOldUI') == "false" || localStorage.getItem('setOldUI') == null)
+				&& App.rSideBar.$el.hasClass('expanded')) {
+				App.rContent.$el.addClass('expanded-contant');
+			} else {
+				App.rContent.$el.removeClass('expanded-contant');
+			}
 			XAUtil.showAlerForDisabledPolicy(this);
 			this.rForm.show(this.form);
 			this.rForm.$el.dirtyFields();
diff --git a/security-admin/src/main/webapp/styles/xa.css b/security-admin/src/main/webapp/styles/xa.css
index c9edbfa..3c7a7b8 100644
--- a/security-admin/src/main/webapp/styles/xa.css
+++ b/security-admin/src/main/webapp/styles/xa.css
@@ -4461,7 +4461,48 @@ input.textFiledInputPadding:disabled {
   position: relative;
   bottom: 6px;
   cursor: pointer;
-}/*[fieldclass="resorces-css"] .control-label {
+}
+
+.recursive-toggle .toggle-off {
+  margin-left: -12px !important;
+}
+
+@media (min-width: 2000px){
+  .expanded-contant .include-toggle{
+    margin-left:400px;
+  }
+  .expanded-contant .recursive-toggle-2{
+    margin-left:500px;
+  }
+  .recursive-toggle-2 {
+    margin-left:600px;
+  }
+}
+
+@media (min-width: 2500px){
+  .expanded-contant .include-toggle{
+    margin-left:500px;
+  }
+  .expanded-contant .recursive-toggle-2{
+    margin-left:600px;
+  }
+  .recursive-toggle-2 {
+    margin-left:700px;
+  }
+}
+
+@media (min-width: 3000px){
+  .expanded-contant .include-toggle{
+    margin-left:550px;
+  }
+  .expanded-contant .recursive-toggle-2{
+    margin-left:650px;
+  }
+  .recursive-toggle-2 {
+    margin-left:750px;
+  }
+}
+/*[fieldclass="resorces-css"] .control-label {
   margin-top: 0px;
   margin-right: -15px
 }*/