Browse Source

HUE-8801 [hive] Do not show the Hive app as another app

Romain Rigaux 6 năm trước cách đây
mục cha
commit
7836fd80cc

+ 4 - 4
desktop/core/src/desktop/appmanager.py

@@ -97,8 +97,8 @@ class DesktopModuleInfo(object):
     # The display name is used by dump_config, and will either be the
     # app name or the config key, if the config key has been defined in the
     # app's settings.  Mostly, it's around for consistency's sake.
-    # The nice name is just a more formal name, i.e. useradmin might 
-    # have a nice name of User Administration Tool, or something 
+    # The nice name is just a more formal name, i.e. useradmin might
+    # have a nice name of User Administration Tool, or something
     # similarly flowery.
     self.module = module
     self.name = module.__name__
@@ -110,7 +110,7 @@ class DesktopModuleInfo(object):
 
     # Load application settings
     self._load_settings_module(module.__name__ + ".settings")
-    
+
     if hasattr(self.settings, "NICE_NAME"):
       self.nice_name = self.settings.NICE_NAME
     else:
@@ -159,7 +159,7 @@ class DesktopModuleInfo(object):
       self.config_key = getattr(s, 'CONFIG_KEY', None)
     else:
       self.django_apps = []
-      self.config_key = None 
+      self.config_key = None
 
   def _resolve_appdir_path(self, path):
     """ Takes a path relative to the application dir and returns an absolute path. """

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

@@ -1938,7 +1938,7 @@ def _get_apps(user, section=None):
     apps = apps_list.values()
     for app in apps:
       if app.display_name not in [
-          'beeswax', 'impala', 'pig', 'jobsub', 'jobbrowser', 'metastore', 'hbase', 'sqoop', 'oozie', 'filebrowser',
+          'beeswax', 'hive', 'impala', 'pig', 'jobsub', 'jobbrowser', 'metastore', 'hbase', 'sqoop', 'oozie', 'filebrowser',
           'useradmin', 'search', 'help', 'about', 'zookeeper', 'proxy', 'rdbms', 'spark', 'indexer', 'security', 'notebook'] and app.menu_index != -1:
         other_apps.append(app)
       if section == app.display_name:

+ 1 - 1
desktop/libs/notebook/src/notebook/conf.py

@@ -210,7 +210,7 @@ def _default_interpreters(user):
   interpreters = []
   apps = appmanager.get_apps_dict(user)
 
-  if 'beeswax' in apps:
+  if 'hive' in apps:
     interpreters.append(('hive', {
       'name': 'Hive', 'interface': 'hiveserver2', 'options': {}
     }),)