Browse Source

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

Johan Ahlen 8 years ago
parent
commit
05ee598

+ 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) {