Browse Source

HUE-8324 [editor] Fix for ADLS and S3 paths in editor context popover

Johan Ahlen 7 years ago
parent
commit
c89a7e33e7

+ 2 - 1
desktop/core/src/desktop/static/desktop/js/assist/assistStorageEntry.js

@@ -338,7 +338,8 @@ var AssistStorageEntry = (function () {
     var deferred = $.Deferred();
     var typeMatch = path.match(/^([^:]+):\/(\/.*)\/?/i);
     var type = typeMatch ? typeMatch[1] : (type || 'hdfs');
-    type.replace(/s3.*/i, 's3');
+    type = type.replace(/s3.*/i, 's3');
+    type = type.replace(/adl.*/i, 'adls');
 
     var rootEntry = new AssistStorageEntry({
       type: type.toLowerCase(),

+ 2 - 0
desktop/core/src/desktop/templates/ko_components/ko_context_popover.mako

@@ -410,9 +410,11 @@ from metadata.conf import has_navigator
           <!-- /ko -->
           <!-- ko if: typeof stats !== 'undefined' -->
           <!-- ko with: stats -->
+          <!-- ko if: user -->
           <div class="context-popover-attribute"><div>${ _('Owner') }</div><div data-bind="text: user"></div></div>
           <!-- /ko -->
           <!-- /ko -->
+          <!-- /ko -->
           <!-- ko if: typeof rwx !== 'undefined' -->
           <div class="context-popover-attribute"><div>${ _('Permissions') }</div><div data-bind="text: rwx"></div></div>
           <!-- /ko -->