Explorar o código

HUE-5658 [metastore] Ignore error popup when the table is not associated to metadata

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
df045ca

+ 2 - 2
apps/metastore/src/metastore/static/metastore/js/metastore.ko.js

@@ -144,7 +144,7 @@ var MetastoreViewModel = (function () {
             if (data && data.status == 0) {
               self.navigatorStats(ko.mapping.fromJS(data.entity));
             } else {
-              $(document).trigger("info", data.message);
+              //$(document).trigger("info", data.message);
             }
           }).fail(function (xhr, textStatus, errorThrown) {
             $(document).trigger("error", xhr.responseText);
@@ -478,7 +478,7 @@ var MetastoreViewModel = (function () {
                   self.navigatorStats(ko.mapping.fromJS(data.entity));
                   self.getRelationships();
                 } else {
-                  $(document).trigger("info", data.message);
+                  //$(document).trigger("info", data.message);
                 }
               }).fail(function (xhr, textStatus, errorThrown) {
                 $(document).trigger("error", xhr.responseText);

+ 1 - 1
desktop/libs/metadata/src/metadata/optimizer_api.py

@@ -108,7 +108,7 @@ def top_tables(request):
     for table in tables:
       paths = _get_table_name(table['name'])
       table.update({u'db': paths['database'], u'table': paths['table'], u'column': None, u'server': u'server1'})
-    tables = checker.filter_objects(tables, action) #, getkey=getkey)
+    tables = list(checker.filter_objects(tables, action)) #, getkey=getkey)
 
   response['top_tables'] = tables
   response['status'] = 0