You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2018/09/27 11:53:59 UTC
atlas git commit: ATLAS-2894: UI to implement REST Endpoint that
Deletes Type Given Type Name(without JSON body)- without params
Repository: atlas
Updated Branches:
refs/heads/branch-0.8 ab6425e35 -> e3a592cef
ATLAS-2894: UI to implement REST Endpoint that Deletes Type Given Type Name(without JSON body)- without params
Signed-off-by: nixonrodrigues <ni...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/e3a592ce
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/e3a592ce
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/e3a592ce
Branch: refs/heads/branch-0.8
Commit: e3a592cefd6dc0a9228e8099518857428169a5af
Parents: ab6425e
Author: Abhishek Kadam <ab...@gmail.com>
Authored: Thu Sep 27 14:44:56 2018 +0530
Committer: nixonrodrigues <ni...@apache.org>
Committed: Thu Sep 27 17:23:05 2018 +0530
----------------------------------------------------------------------
dashboardv2/public/js/models/VTag.js | 2 +-
dashboardv2/public/js/utils/UrlLinks.js | 11 ++++++++---
2 files changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/atlas/blob/e3a592ce/dashboardv2/public/js/models/VTag.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/models/VTag.js b/dashboardv2/public/js/models/VTag.js
index 17acbd8..19767d6 100644
--- a/dashboardv2/public/js/models/VTag.js
+++ b/dashboardv2/public/js/models/VTag.js
@@ -49,7 +49,7 @@ define(['require',
return this.constructor.nonCrudOperation.call(this, url, 'DELETE', options);
},
deleteTag: function(options) {
- var url = UrlLinks.classificationDefApiUrl(options.typeName);
+ var url = UrlLinks.getDefApiUrl(null, options.typeName);
return this.constructor.nonCrudOperation.call(this, url, 'DELETE', options);
},
saveTagAttribute: function(options) {
http://git-wip-us.apache.org/repos/asf/atlas/blob/e3a592ce/dashboardv2/public/js/utils/UrlLinks.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/utils/UrlLinks.js b/dashboardv2/public/js/utils/UrlLinks.js
index 44fd3b0..e8aee1d 100644
--- a/dashboardv2/public/js/utils/UrlLinks.js
+++ b/dashboardv2/public/js/utils/UrlLinks.js
@@ -41,11 +41,16 @@ define(['require', 'utils/Enums', 'utils/Utils', 'underscore'], function(require
return this.getDefApiUrl('enum', name);
},
getDefApiUrl: function(type, name) {
- var defApiUrl = this.typedefsUrl();
+ var defApiUrl = this.typedefsUrl(), defUrl;
if (name) {
- return defApiUrl.def + '/name/' + name + '?type=' + type;
+ defUrl = defApiUrl.def + '/name/' + name;
} else {
- return defApiUrl.defs + '?type=' + type;
+ defUrl = defApiUrl.defs;
+ }
+ if (type) {
+ return defUrl += '?type=' + type;
+ } else {
+ return defUrl;
}
},
taxonomiesApiUrl: function() {