Browse Source

HUE-8714 [core] force flag use_new_editor is true all the time

Ying Chen 6 years ago
parent
commit
7969581fbe
1 changed files with 4 additions and 1 deletions
  1. 4 1
      desktop/core/src/desktop/conf.py

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

@@ -1555,7 +1555,7 @@ EDITOR_AUTOCOMPLETE_TIMEOUT = Config(
 )
 
 USE_NEW_EDITOR = Config( # To remove in Hue 4
-  key='use_new_editor',
+  key='',
   default=True,
   type=coerce_bool,
   help=_('Choose whether to show the new SQL editor.')
@@ -1895,6 +1895,9 @@ def config_validator(user):
   if notebook_doc:
     notebook_doc.delete()
 
+  if 'use_new_editor' in USE_NEW_EDITOR.bind_to:
+    res.append(('[desktop] use_new_editor', unicode(_('This configuration flag has been deprecated.'))))
+
   return res
 
 def get_redaction_policy():