Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1971

Relationship end1 and end 2 are the wrong way round in the instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • None
    • None

    Description

      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": []
      }
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            davidrad David Radley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: