atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Radley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-1987) Relationship creation for many to many does not work.
Date Mon, 24 Jul 2017 14:06:00 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-1987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Radley updated ATLAS-1987:
--------------------------------
    Attachment: 0005LinkedMediaTypes.json
                0210Glossary.json
                0230Terms.json
                0220CategoryHierarchy.json

> Relationship creation for many to many does not work.
> -----------------------------------------------------
>
>                 Key: ATLAS-1987
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1987
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: David Radley
>         Attachments: 0005LinkedMediaTypes.json, 0210Glossary.json, 0220CategoryHierarchy.json,
0230Terms.json
>
>
> I run the supplied json files to add in the types.
> In summary
> I create a category and 2 terms,
> I create 2 termcategoization relationships linking both terms TermA and TermB to Category
CatA. All the calls are successfull.
> I get the category and terms and do not see the expected relaitonship.    
> In detail
> I perform the following in Postman
> 1) I add a GlossaryCategory using
> {
>   "entity" : {
>     "classifications" : [],
>     "typeName" : "GlossaryCategory",
>     "attributes" : {
>       "qualifiedName": "DomainA.CatA",
>       "displayName" : "CatA",
>       "shortDescription" : "CatA desc",
>       "longDescription" : "CatA desc is described here and we could say alot more about
it"
>     }
>   }
> }
> and get 
> {
>     "mutatedEntities": {
>         "CREATE": [
>             {
>                 "typeName": "GlossaryCategory",
>                 "attributes": {
>                     "qualifiedName": "DomainA.CatA"
>                 },
>                 "guid": "3b2d022b-290b-4809-a140-51fcdb92ec5d",
>                 "status": "ACTIVE"
>             }
>         ]
>     },
>     "guidAssignments": {
>         "-1500901345537443002": "3b2d022b-290b-4809-a140-51fcdb92ec5d"
>     }
> }
> 2) Create GlossaryTerm Term A
> {
>   "entity" : {
>     "classifications" : [],
>     "typeName" : "GlossaryTerm",
>     "attributes" : {
>       "qualifiedName": "DomainA.TermA",
>       "Abbreviation" : "A",
>       "name" : "TermA",
>       "shortDescription" : "TermA desc",
>       "longDescription" : "termA desc is described here and we could say alot more about
it"
>     }
>   }
> }
> and get response
> {
>     "mutatedEntities": {
>         "CREATE": [
>             {
>                 "typeName": "GlossaryTerm",
>                 "attributes": {
>                     "qualifiedName": "DomainA.TermA"
>                 },
>                 "guid": "9a2cbbc2-efa5-4925-83fb-df2b98b119c9",
>                 "status": "ACTIVE"
>             }
>         ]
>     },
>     "guidAssignments": {
>         "-1500901345537443005": "9a2cbbc2-efa5-4925-83fb-df2b98b119c9"
>     }
> }
> I then run 
> {
> "end1": {
>    
>     "guid"	 	 : "6dd8d120-fd6d-4998-b650-c041d4450941",
>     "typeName"	 : "GlossaryTerm"
> },
> "end2": {
>      "guid"	 	 : "3b2d022b-290b-4809-a140-51fcdb92ec5d",
>     "typeName"	 : "GlossaryCategory"
> },
> "typeName"  : "TermCategorization"
> }
> and get
> {
>     "typeName": "TermCategorization",
>     "guid": "86ea1178-5239-4dca-94cc-488e948078de",
>     "end1": {
>         "guid": "6dd8d120-fd6d-4998-b650-c041d4450941",
>         "typeName": "GlossaryTerm"
>     },
>     "end2": {
>         "guid": "3b2d022b-290b-4809-a140-51fcdb92ec5d",
>         "typeName": "GlossaryCategory"
>     },
>     "label": "r:TermCategorization",
>     "status": "ACTIVE",
>     "createdBy": "admin",
>     "updatedBy": "admin",
>     "createTime": 1500903666136,
>     "updateTime": 1500903666136,
>     "version": 0
> }
> A get of the terms reveals no catergories associated withthem



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message