Przeglądaj źródła

HUE-6869 [assist] Remove the language reference config flag

Johan Ahlen 7 lat temu
rodzic
commit
93bd199ada

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

@@ -38,9 +38,6 @@
   # container element.
   ## is_embedded=false
 
-  # Choose whether to enable the SQL Language Reference or not.
-  ## enable_sql_language_ref=false
-
   # A comma-separated list of available Hue load balancers
   ## hue_load_balancer=
 

+ 0 - 3
desktop/conf/pseudo-distributed.ini.tmpl

@@ -42,9 +42,6 @@
   # container element.
   ## is_embedded=false
 
-  # Choose whether to enable the SQL Language Reference or not.
-  ## enable_sql_language_ref=false
-
   # A comma-separated list of available Hue load balancers
   ## hue_load_balancer=
 

+ 0 - 8
desktop/core/src/desktop/conf.py

@@ -1594,14 +1594,6 @@ IS_MULTICLUSTER_ONLY = Config(
   help=_('Choose whether to pick configs only from [desktop] [[cluster]]')
 )
 
-ENABLE_SQL_LANGUAGE_REF = Config(
-  key='enable_sql_language_ref',
-  default=False,
-  type=coerce_bool,
-  help=_('Choose whether to enable the SQL Language Reference or not.')
-)
-
-
 def get_clusters(user):
   clusters = []
 

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -3648,7 +3648,7 @@ from desktop.views import _ko
 
         var updateContentsForType = function (type) {
           self.functionsTabAvailable(type === 'hive' || type === 'impala' || type === 'pig');
-          self.langRefTabAvailable(type === 'impala' && window.ENABLE_SQL_LANGUAGE_REF);
+          self.langRefTabAvailable(type === 'impala');
           self.editorAssistantTabAvailable((!window.IS_EMBEDDED || window.EMBEDDED_ASSISTANT_ENABLED) && (type === 'hive' || type === 'impala'));
           self.dashboardAssistantTabAvailable(type === 'dashboard');
           self.schedulesTabAvailable(false);

+ 0 - 2
desktop/core/src/desktop/templates/global_js_constants.mako

@@ -54,8 +54,6 @@
 
   window.IS_EMBEDDED = '${ IS_EMBEDDED.get() }' === 'True';
 
-  window.ENABLE_SQL_LANGUAGE_REF = '${ conf.ENABLE_SQL_LANGUAGE_REF.get() }' === 'True';
-
   window.HUE_I18n = {
     autocomplete: {
       category: {

+ 0 - 2
desktop/core/src/desktop/templates/hue.mako

@@ -512,8 +512,6 @@ ${ commonshare() | n,unicode }
 <script src="${ static('desktop/js/jquery.scrollup.js') }"></script>
 <script src="${ static('desktop/js/jquery.huedatatable.js') }"></script>
 <script src="${ static('desktop/js/sqlFunctions.js') }"></script>
-%if conf.ENABLE_SQL_LANGUAGE_REF.get():
-%endif
 <script src="${ static('desktop/ext/js/selectize.min.js') }"></script>
 <script src="${ static('desktop/js/ko.selectize.js') }"></script>
 <script src="${ static('desktop/js/ace/ace.js') }"></script>