atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chethana (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ATLAS-470) update types create a new index with same typename
Date Thu, 04 Feb 2016 10:44:39 GMT
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)

Mime
View raw message