Apoorv Naik created ATLAS-2627:
----------------------------------

             Summary: Glossary service methods should be a single Graph 
transaction
                 Key: ATLAS-2627
                 URL: https://issues.apache.org/jira/browse/ATLAS-2627
             Project: Atlas
          Issue Type: Bug
            Reporter: Apoorv Naik
            Assignee: Apoorv Naik


In this bulk term creation , out of 3 terms in the array, 2nd term is invalid 
association ( glossary with the term2 already exists)
{code:java}
/api/atlas/v2/glossary/terms
[
{"displayName":"term1","shortDescription":"","longDescription":"","anchor":{"glossaryGuid":"3eb89159-c019-44ad-9d76-29dda0721a37","displayText":"orgn"}},
{"displayName":"term2","shortDescription":"","longDescription":"","anchor":{"glossaryGuid":"fa08157a-562e-4e61-b77f-b287f520ef4e","displayText":"org"}},
{"displayName":"term3","shortDescription":"","longDescription":"","anchor":{"glossaryGuid":"fa08157a-562e-4e61-b77f-b287f520ef4e","displayText":"org"}}
]
{code}
The response is 409. The request creates term1 , but fails at term2 and term3 
is not created due to request failed at term2.

Expected is :
 1. Either the complete transaction should fail.
 2. Or term1 and term3 should be created with proper exception message for 
term2.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to