Ayub Pathan created ATLAS-2614:
----------------------------------
Summary: Uniqueness of qualified names is not honored while
updating a glossary
Key: ATLAS-2614
URL: https://issues.apache.org/jira/browse/ATLAS-2614
Project: Atlas
Issue Type: Bug
Components: atlas-core
Affects Versions: 1.0.0
Reporter: Ayub Pathan
Fix For: 1.0.0
Uniqueness of qualified names is not honored while updating a glossary
* creating 2 glossaries with unique names
{noformat}
apathan@Ayub-sys-101:~ > curl -k -H "Content-Type: application/json" -X POST -u
admin:admin
https://ctr-e138-1518143905142-256977-01-000004.hwx.site:21443/api/atlas/v2/glossary/
-d '{ "qualifiedName" : "HortoniaBank-11", "displayName": "Banking-11" }' |
python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 176 0 108 100 68 23 14 0:00:04 0:00:04 --:--:-- 43
{
"guid": "c445e6c3-1113-4d55-acbd-d421c8c98db1",
"displayName": "Banking-11",
"qualifiedName": "HortoniaBank-11"
}
apathan@Ayub-sys-101:~ > curl -k -H "Content-Type: application/json" -X POST -u
admin:admin
https://ctr-e138-1518143905142-256977-01-000004.hwx.site:21443/api/atlas/v2/glossary/
-d '{ "qualifiedName" : "HortoniaBank-12", "displayName": "Banking-12" }' |
python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 176 0 108 100 68 32 20 0:00:03 0:00:03 --:--:-- 52
{
"guid": "bf43f063-f499-472c-b526-0f81de685e02",
"displayName": "Banking-12",
"qualifiedName": "HortoniaBank-12"
}
apathan@Ayub-sys-101:~ > curl -k -u admin:admin
https://ctr-e138-1518143905142-256977-01-000004.hwx.site:21443/api/atlas/v2/glossary/
| python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 219 0 219 0 0 64 0 --:--:-- 0:00:03 --:--:-- 64
[
{
"guid": "bf43f063-f499-472c-b526-0f81de685e02",
"displayName": "Banking-12",
"qualifiedName": "HortoniaBank-12"
},
{
"guid": "c445e6c3-1113-4d55-acbd-d421c8c98db1",
"displayName": "Banking-11",
"qualifiedName": "HortoniaBank-11"
}
]
{noformat}
* Updating glossary-2 with glossary-1's qualified name, which is allowed.
{noformat}
curl -k -H "Content-Type: application/json" -X PUT -u admin:admin
https://ctr-e138-1518143905142-256977-01-000004.hwx.site:21443/api/atlas/v2/glossary/bf43f063-f499-472c-b526-0f81de685e02
-d '{ "qualifiedName" : "HortoniaBank-11", "displayName": "Banking-11" }' |
python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 176 0 108 100 68 38 23 0:00:02 0:00:02 --:--:-- 62
{
"guid": "bf43f063-f499-472c-b526-0f81de685e02",
"displayName": "Banking-11",
"qualifiedName": "HortoniaBank-11"
}
{noformat}
* Now, you can see both the entities have same qualifedName
{noformat}
apathan@Ayub-sys-101:~ > curl -k -u admin:admin
https://ctr-e138-1518143905142-256977-01-000004.hwx.site:21443/api/atlas/v2/glossary/
| python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 219 0 219 0 0 141 0 --:--:-- 0:00:01 --:--:-- 141
[
{
"guid": "bf43f063-f499-472c-b526-0f81de685e02",
"displayName": "Banking-11",
"qualifiedName": "HortoniaBank-11"
},
{
"guid": "c445e6c3-1113-4d55-acbd-d421c8c98db1",
"displayName": "Banking-11",
"qualifiedName": "HortoniaBank-11"
}
]
apathan@Ayub-sys-101:~ >
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)