[ambari] branch trunk updated: AMBARI-24619 Horizontal scroll bar on assign slaves and clients page is not convenient for deploy with numerous hosts. (ababiichuk)

2018-09-11 Thread ababiichuk
This is an automated email from the ASF dual-hosted git repository.

ababiichuk 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 6645b45  AMBARI-24619 Horizontal scroll bar on assign slaves and 
clients page is not convenient for deploy with numerous hosts. (ababiichuk)
6645b45 is described below

commit 6645b45e9bb680e41255671d3e742fe097018de6
Author: ababiichuk 
AuthorDate: Tue Sep 11 16:09:53 2018 +0300

AMBARI-24619 Horizontal scroll bar on assign slaves and clients page is not 
convenient for deploy with numerous hosts. (ababiichuk)
---
 ambari-web/app/styles/common.less   |  17 +++
 ambari-web/app/styles/wizard.less   | 136 
 ambari-web/app/templates/wizard/step6.hbs   |  72 ++---
 ambari-web/app/views/wizard/step6_view.js   |  36 +--
 ambari-web/test/views/wizard/step6_view_test.js |  21 ++--
 5 files changed, 176 insertions(+), 106 deletions(-)

diff --git a/ambari-web/app/styles/common.less 
b/ambari-web/app/styles/common.less
index 249321b..03e989d 100644
--- a/ambari-web/app/styles/common.less
+++ b/ambari-web/app/styles/common.less
@@ -227,5 +227,22 @@
 @navbar-header-padding-left: 0;
 @navbar-header-font-size: 20px;
 
+/
+* Table styles
+***/
 @table-color: @gray-text;
 @table-font-size: 13px;
+@table-hover-background-color: #E7F6FC;
+@table-hover-border-color: #A7DFF2;
+@table-margin-bottom: 20px;
+@table-footer-color: #999;
+@table-footer-border: 2px solid #EEE;
+@table-cell-padding: 8px;
+
+/
+* Checkbox styles
+***/
+@checkbox-color: #1491C1;
+@checkbox-size: 10px;
+@checkbox-border-radius: 2px;
+@checkbox-top: 4px;
diff --git a/ambari-web/app/styles/wizard.less 
b/ambari-web/app/styles/wizard.less
index 8341bb6..89784a8 100644
--- a/ambari-web/app/styles/wizard.less
+++ b/ambari-web/app/styles/wizard.less
@@ -19,6 +19,7 @@
 @import 'common.less';
 
 @wizard-side-nav-width: 250px;
+@host-column-width: 210px;
 
 #enable_security {
   .step3 {
@@ -251,57 +252,106 @@
   }
   #step6 {
 .pre-scrollable {
-  max-height: 440px;
+  width: 100%;
+  overflow: auto;
   position: relative;
-  display: flex;
-  overflow-y: auto;
+  max-height: 440px;
+  border-bottom: @table-footer-border;
   #component_assign_table {
-display: inline-block;
-overflow-x: auto;
-margin-left: 190px;
-margin-bottom: 10px;
-height: 100%;
-tbody td, th {
-  white-space: nowrap;
-}
-tfoot td {
-  padding-bottom: 30px;
-}
-.trim_hostname {
-  .ellipsis-overflow-nowrap;
-  max-width: 180px;
-  float:left;
+margin-bottom: 0;
+tr {
   display: block;
-}
-.checkbox {
-  margin: 0;
-}
-.host-component-checkbox {
-  line-height: 17px;
-  font-size: 12px;
-  top: 0;
-}
-.freeze {
-  position: absolute;
-  left: 0;
-  width: 210px;
-  border-top-color: #eee;
-  border-bottom: 1px solid #eee;
-}
-td.freeze {
-  padding-bottom: 11px;
-}
-tr.last-row {
-  td {
-border-bottom: 2px solid #eee;
+  padding-left: @host-column-width;
+  td, th {
+white-space: nowrap;
+  }
+  .freeze {
+width: @host-column-width;
+position: absolute;
+left: 0;
+background-color: #fff;
+border-left: 1px solid transparent;
+  }
+  .trim_hostname {
+.ellipsis-overflow-nowrap;
+max-width: 180px;
+float: left;
+display: block;
+  }
+  .checkbox {
+margin: 0;
+position: static;
+input[type="checkbox"] {
+  + label.host-component-checkbox {
+display: inline;
+line-height: 17px;
+font-size: 12px;
+position: static;
+padding-left: 0;
+&:before {
+  position: static;
+  display: inline-block;
+  margin-top: @checkbox-top;
+  margin-right: @checkbox-size;
+}
+&:after {
+  background-color: @checkbox-color;
+  border-color: @checkbox-color;
+  position: static;
+  display: inline-block;
+  float: left;
+  margin-right: @checkbox-size;
+  

[ambari] branch branch-2.7 updated: AMBARI-24516 - Default value for LDAP type (#2276)

2018-09-11 Thread krisztiankasa
This is an automated email from the ASF dual-hosted git repository.

krisztiankasa pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
 new ca9851e  AMBARI-24516 - Default value for LDAP type (#2276)
ca9851e is described below

commit ca9851ea960d3f9b015c88017b3af9832b804091
Author: kasakrisz <33458261+kasakr...@users.noreply.github.com>
AuthorDate: Tue Sep 11 13:47:55 2018 +0200

AMBARI-24516 - Default value for LDAP type (#2276)
---
 ambari-server/src/main/python/ambari-server.py |  43 +++--
 .../src/main/python/ambari_server/setupSecurity.py | 192 +
 ambari-server/src/test/python/TestAmbariServer.py  | 113 ++--
 3 files changed, 247 insertions(+), 101 deletions(-)

diff --git a/ambari-server/src/main/python/ambari-server.py 
b/ambari-server/src/main/python/ambari-server.py
index 6a05013..c1fc6eb 100755
--- a/ambari-server/src/main/python/ambari-server.py
+++ b/ambari-server/src/main/python/ambari-server.py
@@ -18,48 +18,46 @@ See the License for the specific language governing 
permissions and
 limitations under the License.
 '''
 
+import logging
+import logging.config
+import logging.handlers
 import optparse
-import sys
 import os
 import signal
-import logging
-import logging.handlers
-import logging.config
-
-from optparse import OptionValueError
+import sys
 from ambari_commons.exceptions import FatalException, NonFatalException
 from ambari_commons.logging_utils import set_verbose, set_silent, \
   print_info_msg, print_warning_msg, print_error_msg, 
set_debug_mode_from_options
 from ambari_commons.os_check import OSConst
 from ambari_commons.os_family_impl import OsFamilyFuncImpl, OsFamilyImpl
 from ambari_commons.os_utils import remove_file
+from optparse import OptionValueError
+
 from ambari_server.BackupRestore import main as BackupRestore_main
+from ambari_server.checkDatabase import check_database
+from ambari_server.dbCleanup import db_purge
 from ambari_server.dbConfiguration import DATABASE_NAMES, LINUX_DBMS_KEYS_LIST
+from ambari_server.enableStack import enable_stack_version
+from ambari_server.hostUpdate import update_host_names
+from ambari_server.kerberos_setup import setup_kerberos
 from ambari_server.serverConfiguration import configDefaults, 
get_ambari_properties, PID_NAME
-from ambari_server.serverUtils import is_server_runing, refresh_stack_hash, 
wait_for_server_to_stop
 from ambari_server.serverSetup import reset, setup, setup_jce_policy
 from ambari_server.serverUpgrade import upgrade, set_current
+from ambari_server.serverUtils import is_server_runing, refresh_stack_hash, 
wait_for_server_to_stop
+from ambari_server.setupActions import BACKUP_ACTION, LDAP_SETUP_ACTION, 
LDAP_SYNC_ACTION, PSTART_ACTION, \
+  REFRESH_STACK_HASH_ACTION, RESET_ACTION, RESTORE_ACTION, 
UPDATE_HOST_NAMES_ACTION, CHECK_DATABASE_ACTION, \
+  SETUP_ACTION, SETUP_SECURITY_ACTION, RESTART_ACTION, START_ACTION, 
STATUS_ACTION, STOP_ACTION, UPGRADE_ACTION, \
+  SETUP_JCE_ACTION, SET_CURRENT_ACTION, ENABLE_STACK_ACTION, SETUP_SSO_ACTION, 
\
+  DB_PURGE_ACTION, INSTALL_MPACK_ACTION, UNINSTALL_MPACK_ACTION, 
UPGRADE_MPACK_ACTION, PAM_SETUP_ACTION, \
+  MIGRATE_LDAP_PAM_ACTION, KERBEROS_SETUP_ACTION
 from ambari_server.setupHttps import setup_https, setup_truststore
 from ambari_server.setupMpacks import install_mpack, uninstall_mpack, 
upgrade_mpack, STACK_DEFINITIONS_RESOURCE_NAME, \
   SERVICE_DEFINITIONS_RESOURCE_NAME, MPACKS_RESOURCE_NAME
+from ambari_server.setupSecurity import setup_ldap, sync_ldap, 
setup_master_key, setup_ambari_krb5_jaas, setup_pam, \
+  migrate_ldap_pam, LDAP_TYPES
 from ambari_server.setupSso import setup_sso
-from ambari_server.dbCleanup import db_purge
-from ambari_server.hostUpdate import update_host_names
-from ambari_server.checkDatabase import check_database
-from ambari_server.enableStack import enable_stack_version
-
-from ambari_server.setupActions import BACKUP_ACTION, LDAP_SETUP_ACTION, 
LDAP_SYNC_ACTION, PSTART_ACTION, \
-  REFRESH_STACK_HASH_ACTION, RESET_ACTION, RESTORE_ACTION, 
UPDATE_HOST_NAMES_ACTION, CHECK_DATABASE_ACTION, \
-  SETUP_ACTION, SETUP_SECURITY_ACTION,START_ACTION, STATUS_ACTION, 
STOP_ACTION, RESTART_ACTION, UPGRADE_ACTION, \
-  SETUP_JCE_ACTION, SET_CURRENT_ACTION, START_ACTION, STATUS_ACTION, 
STOP_ACTION, UPGRADE_ACTION, \
-  SETUP_JCE_ACTION, SET_CURRENT_ACTION, ENABLE_STACK_ACTION, SETUP_SSO_ACTION, 
\
-  DB_PURGE_ACTION, INSTALL_MPACK_ACTION, UNINSTALL_MPACK_ACTION, 
UPGRADE_MPACK_ACTION, PAM_SETUP_ACTION, MIGRATE_LDAP_PAM_ACTION, 
KERBEROS_SETUP_ACTION
-from ambari_server.setupSecurity import setup_ldap, sync_ldap, 
setup_master_key, setup_ambari_krb5_jaas, setup_pam, migrate_ldap_pam
 from ambari_server.userInput import get_validated_string_input
-from ambari_server.kerberos_setup import setup_kerberos
-
 from ambari_server_main import server_process_main
-from ambari_server.amba