Эх сурвалжийг харах

HUE-6425 [editor] Bump autocomplete timeout

Romain Rigaux 8 жил өмнө
parent
commit
7e907a9

+ 2 - 2
desktop/conf.dist/hue.ini

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

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

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

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

@@ -1290,14 +1290,14 @@ USE_NEW_AUTOCOMPLETER = Config( # This now refers to the new autocomplete dropdo
   key='use_new_autocompleter',
   default=True,
   type=coerce_bool,
-  help=_('Enable the improved editor autocomplete dropdown')
+  help=_('Enable the improved editor autocomplete dropdown.')
 )
 
 EDITOR_AUTOCOMPLETE_TIMEOUT = Config(
   key='editor_autocomplete_timeout',
   type=int,
-  default=10000,
-  help=_('Timeout value in ms for autocomplete of columns, tables, values etc. 0 = disabled')
+  default=30000,
+  help=_('Timeout value in ms for autocomplete of columns, tables, values etc. 0 = disabled.')
 )
 
 USE_NEW_EDITOR = Config( # To remove in Hue 4

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -918,7 +918,7 @@ var EditorViewModel = (function() {
         lastComplexityRequest = $.ajax({
           type: 'POST',
           url: '/notebook/api/optimizer/statement/risk',
-          timeout: 15000, // 15 seconds
+          timeout: 30000, // 30 seconds
           data: {
             notebook: ko.mapping.toJSON(notebook.getContext()),
             snippet: ko.mapping.toJSON(self.getContext())