You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Chethana (JIRA)" <ji...@apache.org> on 2016/02/04 11:44:39 UTC
[jira] [Created] (ATLAS-470) update types create a new index with
same typename
Chethana created ATLAS-470:
------------------------------
Summary: update types create a new index with same typename
Key: ATLAS-470
URL: https://issues.apache.org/jira/browse/ATLAS-470
Project: Atlas
Issue Type: Bug
Affects Versions: 0.7-incubating
Environment: Sandbox
Reporter: Chethana
Priority: Critical
Create a type -
POST - http://localhost:21000/api/atlas/types
"enumTypes":[
],
"structTypes":[
],
"traitTypes":[
],
"classTypes":[
{
"superTypes":[
],
"hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType",
"typeName":"TypeDefString1",
"attributeDefinitions":[
{
"name":"isCompositeFalse",
"dataTypeName":"string",
"multiplicity":"optional",
"isComposite":false,
"isUnique":false,
"isIndexable":false,
"reverseAttributeName":null
}
]
}
]
}
Update this type
PUT-
http://localhost:21000/api/atlas/types
"enumTypes":[
],
"structTypes":[
],
"traitTypes":[
],
"classTypes":[
{
"superTypes":[
],
"hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType",
"typeName":"TypeDefString1",
"attributeDefinitions":[
{
"name":"isCompositeFalse",
"dataTypeName":"string",
"multiplicity":"optional",
"isComposite":false,
"isUnique":false,
"isIndexable":false,
"reverseAttributeName":null
},
{
"name":"isTestable",
"dataTypeName":"boolean",
"multiplicity":"optional",
"isComposite":false,
"isUnique":false,
"isIndexable":false,
"reverseAttributeName":null
}
]
}
]
}
actual-
http://localhost:21000/api/atlas/types?type=CLASS
{
"results": [
"TypeDefString1",
"TypeDefString1"
],
"count": 60,
"requestId": "qtp1879648991-299 - 8581163e-cb86-4ef3-af71-ff4495884cb0"
}
actual-
http://localhost:21000/api/atlas/types?type=CLASS
expected
{
"results": [
"TypeDefString1"
],
"count": 60,
"requestId": "qtp1879648991-299 - 8581163e-cb86-4ef3-af71-ff4495884cb0"
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)