瀏覽代碼

HUE-7820 [metastore] Skeleton call to fetch a batch of columns with metadata comment of a table

Romain Rigaux 8 年之前
父節點
當前提交
cf1ee36bc0
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      apps/metastore/src/metastore/static/metastore/js/metastore.model.js

+ 9 - 0
apps/metastore/src/metastore/static/metastore/js/metastore.model.js

@@ -511,6 +511,15 @@ var MetastoreTable = (function () {
               table: self
             })
           }));
+/* Get a batch of 500 columns with comments
+          self.apiHelper.navSearch({
+            query: 'parentPath:"/' + self.database.name + '/' + self.name + '" AND type:FIELD AND description:[* TO *]',
+            limit: 500
+          }).done(function (apps) {
+		    console.log(apps);
+		    // For each col update comment
+		  });
+*/
           self.favouriteColumns(self.columns().slice(0, 5));
         },
         errorCallback: function () {