Browse Source

HUE-8737 [py3] Metastore and indexer should not crash even if no network

Romain 6 năm trước cách đây
mục cha
commit
5c39c92a90

+ 1 - 1
apps/metastore/src/metastore/templates/components.mako

@@ -25,7 +25,7 @@
           <div class="nav-collapse">
             <ul class="nav">
               <li class="app-header">
-                <a href="/${app_name}">
+                <a href="/metastore">
                   <img src="${ static('metastore/art/icon_metastore_48.png') }" class="app-icon" alt="${ _('Metastore icon') }" />
                   ${ _('Table Browser') if is_embeddable else _('Metastore Manager') }
                 </a>

+ 1 - 2
apps/metastore/src/metastore/templates/metastore.mako

@@ -22,10 +22,9 @@ from desktop.conf import USE_NEW_EDITOR
 from desktop.lib.i18n import smart_unicode
 from desktop.views import commonheader, commonfooter, _ko
 from beeswax.conf import LIST_PARTITIONS_LIMIT
+from webpack_loader.templatetags.webpack_loader import render_bundle
 
 from metastore.conf import ENABLE_NEW_CREATE_TABLE
-
-from webpack_loader.templatetags.webpack_loader import render_bundle
 %>
 
 <%namespace name="actionbar" file="actionbar.mako" />

+ 1 - 1
desktop/libs/indexer/src/indexer/templates/indexes.mako

@@ -88,7 +88,7 @@ ${ commonheader(_("Index Browser"), "search", user, request, "60px") | n,unicode
         <div class="nav-collapse">
           <ul class="nav">
             <li class="app-header">
-              <a href="/${app_name}">
+              <a href="/indexer">
                 ${ _('Index Browser') }
               </a>
             </li>