Przeglądaj źródła

HUE-6077 [editor] Open YARN jobs of queries directly into Job Browser2

Prepare hue link for Nav search
Romain Rigaux 8 lat temu
rodzic
commit
c1fe83f26e

+ 2 - 2
desktop/core/src/desktop/templates/assist_search.mako

@@ -112,10 +112,10 @@ from notebook.conf import ENABLE_QUERY_BUILDER
             </div>
             <div class="doc-col" data-bind="css: { 'doc-col-no-desc' : !hasDescription }">
               <!-- ko if: typeof click !== 'undefined' -->
-              <a class="pointer" data-bind="click: click, html: hue_name" target="_blank" ></a>
+                <a class="pointer" data-bind="click: click, html: hue_name" target="_blank"></a>
               <!-- /ko -->
               <!-- ko if: typeof click === 'undefined' && typeof link !== 'undefined'-->
-              <a class="pointer" data-bind="attr: { 'href': link }, text: originalName" target="_blank" ></a>
+                <a class="pointer" data-bind="hueLink: link, text: originalName, attr: { target: IS_HUE_4 ? '_self' : '_blank' }"></a>
               <!-- /ko -->
               <div class="doc-desc" data-bind="html: hue_description"></div>
             </div>

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

@@ -760,7 +760,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           }},
           { url: '/jobbrowser/', app: 'jobbrowser' },
           { url: '/jobbrowser/jobs/job_*', app: function (ctx) {
-            page.redirect('/jobbrowser/jobs/#!application_' + _.trimRight(ctx.params[0], '/'));
+            page.redirect('/jobbrowser/jobs/#!id=application_' + _.trimRight(ctx.params[0], '/'));
           }},
           { url: '/jobbrowser/jobs', app: 'jobbrowser' },
           { url: '/logs', app: 'logs' },