atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saba Baig (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-1728) Type deletion is allowed even when instance of the type exists.
Date Mon, 10 Apr 2017 10:40:42 GMT

    [ https://issues.apache.org/jira/browse/ATLAS-1728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962700#comment-15962700
] 

Saba Baig commented on ATLAS-1728:
----------------------------------

I had a type with following definition
{
  "typeName": "demo_hbase_namespace_1",
  "definition": {
    "enumTypes": [],
    "structTypes": [],
    "traitTypes": [],
    "classTypes": [
      {
        "superTypes": [
          "Referenceable",
          "Asset"
        ],
        "hierarchicalMetaTypeName": "org.apache.atlas.typesystem.types.ClassType",
        "typeName": "invesco_demo_hbase_namespace_1",
        "typeDescription": "invesco_demo_hbase_namespace_1",
        "typeVersion": "1.0",
        "attributeDefinitions": []
      }
    ]
  }
}
and then when I used api/atlas/v2/types/typedefs as a DELETE request with body as
{
      "structDefs":[],
      "entityDefs":[
    	{
		  "category": "ENTITY",
	      "guid": "a28f1181-c7db-4dd9-a2ba-c25f6e2f3a47",
	      "createTime": 1491465018963,
	      "updateTime": 1491465018963,
	      "version": 1,
	      "name": "demo_hbase_namespace_1",
	      "description": "demo_hbase_namespace_1",
	      "typeVersion": "1.0",
	      "attributeDefs": [],
	      "superTypes": [
	        "Referenceable",
	        "Asset"
	      ]
    	}
    ],
    "classificationDefs":[],
    "enumDefs":[]
}
it gave me the error of "Unexpected 'T'".
Could you please help me figure out where I went wrong?

> Type deletion is allowed even when instance of the type exists.
> ---------------------------------------------------------------
>
>                 Key: ATLAS-1728
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1728
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.8-incubating, 0.9-incubating
>            Reporter: Sharmadha Sainath
>
> 1.Created a type 
> 2.Created instance of the type. 
> 3.Deleted the type - Succeeded with 204
> 4.The instance still exists after deletion with ACTIVE status . The entity definition
has only the attributes removed and able to search and find the entity using Basic search
> Entity def of entity of deleted type :
> {code}
> {  
>    referredEntities:{  
>    },
>    entity:{  
>       typeName:"deltype",
>       guid:"cfc08f54-6d4b-4e46-800b-2cecd0b68140",
>       status:"ACTIVE",
>       createdBy:"admin",
>       updatedBy:"admin",
>       createTime:1491816571151,
>       updateTime:1491816571151,
>       version:0,
>       classifications:[  
>       ]
>    }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message