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

Zineng Yuan commented on ATLAS-1318:
------------------------------------

Thank you for comments.  The above deletion logic looks good to me and the same 
logic can apply to hierarchical type as well. 

Two thoughts:
1)  Since the deletion now is a cascading behavior and it might impact many 
levels and types, to play safe in case that a user mistakenly delete all T_Ref 
types,  I would like to put some constraints on the server side. The purpose is 
to prevent a user making unexpected mistakes.  This rest API fails if any T_Ref 
with entities exist and it forces the user to manually delete all T_Ref 
entities before moving on.  The error msg must be informative and mentioned all 
T_Ref types with entities.   Although it requires a user to engage, it 
validates a user's purpose.




Also, since the requirement and implementation are largely clear,  could you 
assign this ticket to the community?  I am also willing to take the 
responsibility if needed.






> Atlas Type System does not have DELETE API
> ------------------------------------------
>
>                 Key: ATLAS-1318
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1318
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>            Reporter: Zineng Yuan
>
> I am trying to extend Atlas Type System by adding custom data type. However, 
> when I found a type name was misspecified and needed to be recreated, I can't 
> find a Restful Delete API.
> Question is does Atlas expose a Delete API for custom data types/attributes? 
> Without this delete API, it's difficult to rely on Atlas as a meta store to 
> extend custom data.  
> Please do suggest how to recreate a data type in this case. Thank you! 
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to