Commit a1d54d65 by Hemanth Yamijala

ATLAS-870 Add search feature while associating Tags / Terms with entity.…

ATLAS-870 Add search feature while associating Tags / Terms with entity. (Kalyanikashikar via yhemanth)
parent 0901714a
...@@ -21,8 +21,9 @@ define(['require', ...@@ -21,8 +21,9 @@ define(['require',
'hbs!tmpl/business_catalog/AddTermToEntityLayoutView_tmpl', 'hbs!tmpl/business_catalog/AddTermToEntityLayoutView_tmpl',
'utils/Utils', 'utils/Utils',
'modules/Modal', 'modules/Modal',
'collection/VCatalogList' 'collection/VCatalogList',
], function(require, Backbone, AddTermToEntityLayoutViewTmpl, Utils, Modal, VCatalogList) { 'utils/Messages'
], function(require, Backbone, AddTermToEntityLayoutViewTmpl, Utils, Modal, VCatalogList, Messages) {
'use strict'; 'use strict';
var AddTermToEntityLayoutView = Backbone.Marionette.LayoutView.extend( var AddTermToEntityLayoutView = Backbone.Marionette.LayoutView.extend(
...@@ -101,6 +102,10 @@ define(['require', ...@@ -101,6 +102,10 @@ define(['require',
terms += '<option value="' + obj.get('name') + '">' + obj.get('name') + '</option>'; terms += '<option value="' + obj.get('name') + '">' + obj.get('name') + '</option>';
}); });
this.ui.addTermOptions.html(terms); this.ui.addTermOptions.html(terms);
this.ui.addTermOptions.select2({
placeholder: "Select Term",
allowClear: true
});
}, },
saveTermToAsset: function() { saveTermToAsset: function() {
var that = this; var that = this;
...@@ -112,7 +117,7 @@ define(['require', ...@@ -112,7 +117,7 @@ define(['require',
beforeSend: function() {}, beforeSend: function() {},
success: function(data) { success: function(data) {
Utils.notifySuccess({ Utils.notifySuccess({
content: "Term " + that.ui.addTermOptions.val() + " has been added to entity" content: "Term " + that.ui.addTermOptions.val() + Messages.addTermToEntitySuccessMessage
}); });
if (that.callback) { if (that.callback) {
that.callback(); that.callback();
...@@ -125,7 +130,7 @@ define(['require', ...@@ -125,7 +130,7 @@ define(['require',
if (data && data.responseText) { if (data && data.responseText) {
var data = JSON.parse(data.responseText); var data = JSON.parse(data.responseText);
Utils.notifyError({ Utils.notifyError({
content: data.message content: data.messages
}); });
} }
}, },
......
...@@ -87,6 +87,10 @@ define(['require', ...@@ -87,6 +87,10 @@ define(['require',
} }
}); });
this.ui.addTagOptions.html(str); this.ui.addTagOptions.html(str);
this.ui.addTagOptions.select2({
placeholder: "Select Tag",
allowClear: true
});
}, },
onChangeTagDefination: function() { onChangeTagDefination: function() {
this.ui.tagAttribute.empty(); this.ui.tagAttribute.empty();
......
...@@ -22,6 +22,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset ...@@ -22,6 +22,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset
ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags) ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags)
ALL CHANGES: ALL CHANGES:
ATLAS-870 Add search feature while associating Tags / Terms with entity. (Kalyanikashikar via yhemanth)
ATLAS-865 Edit description functionality for Tags (kevalbhatt18 via yhemanth) ATLAS-865 Edit description functionality for Tags (kevalbhatt18 via yhemanth)
ATLAS-820 Kerberized env: Authentication failing (nixonrodrigues via yhemanth) ATLAS-820 Kerberized env: Authentication failing (nixonrodrigues via yhemanth)
ATLAS-852 Change Default landing page to taxonomy (kevalbhatt18 via yhemanth) ATLAS-852 Change Default landing page to taxonomy (kevalbhatt18 via yhemanth)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment