Explorar el Código

HUE-9500 [ui] Comment is not shown when view the table info from table browser first time (asnaik)

Akhil Naik hace 5 años
padre
commit
8b062af018
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      desktop/core/src/desktop/js/catalog/dataCatalogEntry.js

+ 4 - 4
desktop/core/src/desktop/js/catalog/dataCatalogEntry.js

@@ -812,13 +812,13 @@ class DataCatalogEntry {
    */
   getResolvedComment() {
     const self = this;
+    // TODO: Move to connector attributes
+    if (self.navigatorMeta && (self.getDialect() === 'hive' || self.getDialect() === 'impala') && (self.navigatorMeta.description || self.navigatorMeta.originalDescription)) {
+      return self.navigatorMeta.description || self.navigatorMeta.originalDescription;
+    }
     if (self.definition && self.definition.comment) {
       return self.definition.comment;
     }
-    // TODO: Move to connector attributes
-    if (self.navigatorMeta && (self.getDialect() === 'hive' || self.getDialect() === 'impala')) {
-      return self.navigatorMeta.description || self.navigatorMeta.originalDescription || '';
-    }
     return (self.sourceMeta && self.sourceMeta.comment) || '';
   }