瀏覽代碼

HUE-7687 [metastore] Supply the source type when updating table and column comments

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

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

@@ -444,6 +444,7 @@ var MetastoreTable = (function () {
 
     self.comment.subscribe(function (newValue) {
       $.post('/metastore/table/' + self.database.name + '/' + self.name + '/alter', {
+        source_type: self.sourceType,
         comment: newValue ? newValue : ""
       }, function () {
         huePubSub.publish('assist.clear.db.cache', {
@@ -724,6 +725,7 @@ var MetastoreColumn = (function () {
 
     self.comment.subscribe(function (newValue) {
       $.post('/metastore/table/' + self.table.database.name + '/' + self.table.name + '/alter_column', {
+        source_type: self.table.sourceType,
         column: self.name(),
         comment: newValue
       }, function (data) {