[ https://issues.apache.org/jira/browse/ATLAS-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neeru Gupta reassigned ATLAS-470: --------------------------------- Assignee: Neeru Gupta > 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 > Assignee: Neeru Gupta > Priority: Critical > Attachments: applicationLog_op.txt > > > 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)