You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Neeru Gupta (JIRA)" <ji...@apache.org> on 2016/04/07 15:43:25 UTC
[jira] [Resolved] (ATLAS-470) update types create a new index with
same typename
[ https://issues.apache.org/jira/browse/ATLAS-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neeru Gupta resolved ATLAS-470.
-------------------------------
Resolution: Duplicate
Resolved with ATLAS-511
> 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, rb45043.patch
>
>
> 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)