You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "David Radley (JIRA)" <ji...@apache.org> on 2017/07/20 13:48:00 UTC

[jira] [Resolved] (ATLAS-1971) Relationship end1 and end 2 are the wrong way round in the instances

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

David Radley resolved ATLAS-1971.
---------------------------------
    Resolution: Invalid

My mistake I was confused with the types and names - I think it is good. 

> Relationship end1 and end 2 are the wrong way round in the instances
> --------------------------------------------------------------------
>
>                 Key: ATLAS-1971
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1971
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: David Radley
>
> If you use the files that have been attached to ATLAS-1969, And create a Glossary and a GlossaryCategory instance. I notice :
> "relationshipDefs":[
>      {
>          "name": "CategoryAnchor",
>          "typeVersion": "1.0",
>          "endDef1": {
>            "name": "anchor",
>            "type": "GlossaryCategory",
>            "cardinality":"SINGLE"
>          },
>          "endDef2": {
>            "name": "categories",
>            "type": "Glossary",
>            "cardinality":"SET",
>             "isContainer":true
>          },
>          "relationshipCategory":"COMPOSITION",
>          "propagateTags":"NONE"
>      },
> when I create this relationship I had expected to see GlossaryCategory with new attribute anchor of type Glossary. I create an instance and see that the Category CatA is  : 
> {
>     "referredEntities": {},
>     "entity": {
>         "typeName": "GlossaryCategory",
>         "attributes": {
>             "shortDescription": "CatA desc",
>             "qualifiedName": "DomainA.CatA",
>             "longDescription": "CatA desc is described here and we could say alot more about it",
>             "displayName": "CatA"
>         },
>         "guid": "e2d4fe5c-7e20-447e-a1d2-a4eacd093174",
>         "status": "ACTIVE",
>         "createdBy": "admin",
>         "updatedBy": "admin",
>         "createTime": 1500549089631,
>         "updateTime": 1500549089631,
>         "version": 0,
>         "relationshipAttributes": {
>             "externalGlossaryLinks": [],
>             "meanings": [],
>             "parentCategory": {
>                 "guid": "d6df28ed-1179-4f4d-bead-ca632bc2fe14",
>                 "typeName": "GlossaryCategory"
>             },
>             "terms": [],
>             "externalReference": [],
>             "embeddedMetadata": [],
>             "categories": [
>                 {
>                     "guid": "de1890ce-c923-4b79-809b-f33e4054e672",
>                     "typeName": "Glossary"
>                 }
>             ],
>             "childrenCategories": []
>         },
>         "classifications": []
>     }
> }
> This is not correct, it should have injected a relationship attribute anchor. 
> Also the Glossary is : 
> {
>     "referredEntities": {},
>     "entity": {
>         "typeName": "Glossary",
>         "attributes": {
>             "shortDescription": "TestGlossary1 is described here",
>             "qualifiedName": "DomainA.TestGlossary1",
>             "longDescription": "TestGlossary1 is described here and we could say alot more about it",
>             "usage": "Sample for test purposes",
>             "language": "English (UK)",
>             "displayName": "TestGlossary1"
>         },
>         "guid": "de1890ce-c923-4b79-809b-f33e4054e672",
>         "status": "ACTIVE",
>         "createdBy": "admin",
>         "updatedBy": "admin",
>         "createTime": 1500549085716,
>         "updateTime": 1500549085716,
>         "version": 0,
>         "relationshipAttributes": {
>             "meanings": [],
>             "externalGlossary": [],
>             "externalReference": [],
>             "embeddedMetadata": [],
>             "anchor": {
>                 "guid": "e2d4fe5c-7e20-447e-a1d2-a4eacd093174",
>                 "typeName": "GlossaryCategory"
>             }
>         },
>         "classifications": []
>     }
> }
>    



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