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

HUE-6269 [editor] Getting sometimes "expected string or buffer" popup exception

Also bump editor autocomplete timeout
Romain Rigaux пре 8 година
родитељ
комит
e86b312

+ 1 - 1
apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

@@ -1867,7 +1867,7 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
       var clock;
       self.job.subscribe(function(val) {
         clearInterval(clock);
-        if (self.interface() !== 'slas' && self.interface() !== 'oozie-info'){
+        if (self.interface() && self.interface() !== 'slas' && self.interface() !== 'oozie-info'){
           if (val) {
             clock = setInterval(val.updateJob, 5000, 'jobbrowser');
           } else {

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

@@ -171,7 +171,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=5000
+  ## editor_autocomplete_timeout=10000
 
   # Enable saved default configurations for Hive, Impala, Spark, and Oozie.
   ## use_default_configuration=false

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

@@ -175,7 +175,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=5000
+  ## editor_autocomplete_timeout=10000
 
   # Enable saved default configurations for Hive, Impala, Spark, and Oozie.
   ## use_default_configuration=false

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

@@ -1273,7 +1273,7 @@ USE_NEW_AUTOCOMPLETER = Config( # This now refers to the new autocomplete dropdo
 EDITOR_AUTOCOMPLETE_TIMEOUT = Config(
   key='editor_autocomplete_timeout',
   type=int,
-  default=5000,
+  default=10000,
   help=_('Timeout value in ms for autocomplete of columns, tables, values etc. 0 = disabled')
 )