From da927f48974fbe6913a81b44eaee4a4e47c3ac6a Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Wed, 17 Aug 2022 14:38:37 +0530 Subject: [PATCH] 1) Autocomplete on keypress should be set to False by default. 2) Update the documentation for the locked option in user management. --- docs/en_US/user_management.rst | 6 +++--- web/pgadmin/tools/sqleditor/utils/query_tool_preferences.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en_US/user_management.rst b/docs/en_US/user_management.rst index f3e5f92fd..d9681f453 100644 --- a/docs/en_US/user_management.rst +++ b/docs/en_US/user_management.rst @@ -59,9 +59,9 @@ Provide information about the new pgAdmin role in the row: authentication source except *internal*. * Re-enter the password in the *Confirm password* field. This field is disabled if you select *ldap* as authentication source. -* Move the *Locked* switch to the *True* position if you want to lock the account; - the default is *False*. This functionality is useful when a user is locked by - trying unsuccessful login attempts. +* *Locked* switch is disabled by default when set to *False*. It is only enabled + when the user is locked by trying unsuccessful login attempts. Move the switch + to the *False* position if you want to unlock the account. To discard a user, and revoke access to pgAdmin, click the trash icon to the left of the row and confirm deletion in the *Delete user?* dialog. If the user diff --git a/web/pgadmin/tools/sqleditor/utils/query_tool_preferences.py b/web/pgadmin/tools/sqleditor/utils/query_tool_preferences.py index d83720972..95c052faf 100644 --- a/web/pgadmin/tools/sqleditor/utils/query_tool_preferences.py +++ b/web/pgadmin/tools/sqleditor/utils/query_tool_preferences.py @@ -679,7 +679,7 @@ def register_query_tool_preferences(self): self.preference.register( 'auto_completion', 'autocomplete_on_key_press', - gettext("Autocomplete on key press"), 'boolean', True, + gettext("Autocomplete on key press"), 'boolean', False, category_label=gettext('Auto completion'), help_str=gettext('If set to True, autocomplete will be available on ' 'key press along with CTRL/CMD + Space. If set to '