소스 검색

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

Romain Rigaux 9 년 전
부모
커밋
df045ca
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      apps/metastore/src/metastore/static/metastore/js/metastore.ko.js
  2. 1 1
      desktop/libs/metadata/src/metadata/optimizer_api.py

+ 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