Преглед изворни кода

HUE-4754 [editor] Increase default autocompleter API timeout to 5 seconds

Johan Ahlen пре 9 година
родитељ
комит
40b40e1

+ 4 - 0
desktop/conf.dist/hue.ini

@@ -160,6 +160,10 @@
   # Choose whether to show the new SQL editor.
   ## use_new_editor=true
 
+  # Editor autocomplete timeout (ms) when fetching columns, fields, tables etc.
+  # To disable this type of autocompletion set the value to 0
+  ## editor_autocomplete_timeout=5000
+
   # Enable saved default configurations for Hive, Impala, Spark, and Oozie.
   ## use_default_configuration=false
 

+ 1 - 1
desktop/conf/pseudo-distributed.ini.tmpl

@@ -166,7 +166,7 @@
 
   # Editor autocomplete timeout (ms) when fetching columns, fields, tables etc.
   # To disable this type of autocompletion set the value to 0
-  ## editor_autocomplete_timeout=3000
+  ## editor_autocomplete_timeout=5000
 
   # Enable saved default configurations for Hive, Impala, Spark, and Oozie.
   ## use_default_configuration=false

+ 1 - 1
desktop/core/src/desktop/conf.py

@@ -1181,7 +1181,7 @@ USE_NEW_AUTOCOMPLETER = Config( # To remove when it's working properly, not supp
 EDITOR_AUTOCOMPLETE_TIMEOUT = Config(
   key='editor_autocomplete_timeout',
   type=int,
-  default=3000,
+  default=5000,
   help=_('Timeout value in ms for autocomplete of columns, tables, values etc. 0 = disabled')
 )