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',
'hbs!tmpl/business_catalog/AddTermToEntityLayoutView_tmpl',
'utils/Utils',
'modules/Modal',
'collection/VCatalogList'
], function(require, Backbone, AddTermToEntityLayoutViewTmpl, Utils, Modal, VCatalogList) {
'collection/VCatalogList',
'utils/Messages'
], function(require, Backbone, AddTermToEntityLayoutViewTmpl, Utils, Modal, VCatalogList, Messages) {
'use strict';
var AddTermToEntityLayoutView = Backbone.Marionette.LayoutView.extend(
......@@ -101,6 +102,10 @@ define(['require',
terms += '<option value="' + obj.get('name') + '">' + obj.get('name') + '</option>';
});
this.ui.addTermOptions.html(terms);
this.ui.addTermOptions.select2({
placeholder: "Select Term",
allowClear: true
});
},
saveTermToAsset: function() {
var that = this;
......@@ -112,7 +117,7 @@ define(['require',
beforeSend: function() {},
success: function(data) {
Utils.notifySuccess({
content: "Term " + that.ui.addTermOptions.val() + " has been added to entity"
content: "Term " + that.ui.addTermOptions.val() + Messages.addTermToEntitySuccessMessage
});
if (that.callback) {
that.callback();
......@@ -125,7 +130,7 @@ define(['require',
if (data && data.responseText) {
var data = JSON.parse(data.responseText);
Utils.notifyError({
content: data.message
content: data.messages
});
}
},
......
......@@ -87,6 +87,10 @@ define(['require',
}
});
this.ui.addTagOptions.html(str);
this.ui.addTagOptions.select2({
placeholder: "Select Tag",
allowClear: true
});
},
onChangeTagDefination: function() {
this.ui.tagAttribute.empty();
......
......@@ -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)
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-820 Kerberized env: Authentication failing (nixonrodrigues 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