Question on the relation between terms and other e...
# troubleshoot
c
Question on the relation between terms and other entities. So I created a number of Terms. I associated some database to those Terms. Term:
Brainbee
Database:
dh-test-ing-brainbee
is associated with "Term"
Brainbee
When I approach it through the search service, ie URL = https://my-host/search?filter_glossaryTerms=urn%3Ali%3AglossaryTerm%3ASource.Brainbee I do see the associated database When I approach the term from the glossary, URL = https://my-host/glossary/urn:li:glossaryTerm:Sources.Brainbee/Related%20Entities I do not see any related entities. Weird, I would have expected the associated database here. When I do the same for another Term, it does work. Why doesn't the glossary page sometimes show all related entities? Do you recognize this behaviour? How can I repair those links?
d
@big-carpet-38439 @green-football-43791 do you have any idea about this?
b
@chilly-oil-22683 I'm assuming you're on the latest version? I am going to try to reproduce this
Also, it works for another term on the same database? or on a different entity type?
This could also be related to 10 minute query caching we do on our side - please wait some time after adding the term to the entity and then refresh the term page 🙂 I am trying to repro but have not been able yet
Also, can you provide the term that is working?
c
@big-carpet-38439 I'm on v0.8.31
I'll collect some more info
Brainbee GlossaryTerm (expected to see related database entity here)
Through search its visible
Database entity, note related Glossary Term to the right
The entity itself (got this through Rest.li API )
Copy code
{
  "urn": "urn:li:container:a66a328591fc46c450a8fc355acf969c",
  "aspects": {
    "browsePaths": {
      "name": "browsePaths",
      "version": 0,
      "value": {
        "paths": [
          ""
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893908122
      }
    },
    "ownership": {
      "name": "ownership",
      "version": 0,
      "value": {
        "owners": [
          {
            "type": "DATA_STEWARD",
            "owner": "urn:li:corpGroup:d8d4d15e-3c42-4e73-a6e1-5199258bcfe7",
            "source": {
              "type": "MANUAL"
            }
          }
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:datahub",
        "time": 1649087217564
      }
    },
    "dataPlatformInstance": {
      "name": "dataPlatformInstance",
      "version": 0,
      "value": {
        "platform": "urn:li:dataPlatform:glue"
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893908284
      }
    },
    "containerKey": {
      "name": "containerKey",
      "version": 0,
      "value": {
        "guid": "a66a328591fc46c450a8fc355acf969c"
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893908122
      }
    },
    "glossaryTerms": {
      "name": "glossaryTerms",
      "version": 0,
      "value": {
        "auditStamp": {
          "actor": "urn:li:corpuser:datahub",
          "time": 1649087205867
        },
        "terms": [
          {
            "urn": "urn:li:glossaryTerm:Source.Brainbee"
          },
          {
            "urn": "urn:li:glossaryTerm:Classification.Confidential"
          }
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:datahub",
        "time": 1649087205867
      }
    },
    "domains": {
      "name": "domains",
      "version": 0,
      "value": {
        "domains": [
          "urn:li:domain:981173b7-dab1-48b3-9d89-bcb093e3808b"
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648910772409
      }
    },
    "subTypes": {
      "name": "subTypes",
      "version": 0,
      "value": {
        "typeNames": [
          "Database"
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893908403
      }
    },
    "containerProperties": {
      "name": "containerProperties",
      "version": 0,
      "value": {
        "name": "dh-test-ing-brainbee",
        "customProperties": {
          "platform": "glue",
          "database": "dh-test-ing-brainbee",
          "instance": "TEST"
        }
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893908122
      }
    }
  },
  "entityName": "container"
}
The glossary Term
Copy code
{
  "urn": "urn:li:glossaryTerm:Source.Brainbee",
  "aspects": {
    "glossaryTermKey": {
      "name": "glossaryTermKey",
      "version": 0,
      "value": {
        "name": "Source.Brainbee"
      },
      "created": {
        "actor": "urn:li:corpuser:__datahub_system",
        "time": 1649250068547
      }
    }
  },
  "entityName": "glossaryTerm"
}
Now the same for a working one
Copy code
{
  "urn": "urn:li:container:6e11d37d45edbc9ff92db42d01350d3a",
  "aspects": {
    "browsePaths": {
      "name": "browsePaths",
      "version": 0,
      "value": {
        "paths": [
          ""
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893921631
      }
    },
    "dataPlatformInstance": {
      "name": "dataPlatformInstance",
      "version": 0,
      "value": {
        "platform": "urn:li:dataPlatform:glue"
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893921661
      }
    },
    "containerKey": {
      "name": "containerKey",
      "version": 0,
      "value": {
        "guid": "6e11d37d45edbc9ff92db42d01350d3a"
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893921631
      }
    },
    "glossaryTerms": {
      "name": "glossaryTerms",
      "version": 0,
      "value": {
        "auditStamp": {
          "actor": "urn:li:corpuser:datahub",
          "time": 1649163090230
        },
        "terms": [
          {
            "urn": "urn:li:glossaryTerm:Sources.Laadpaal locaties"
          }
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:datahub",
        "time": 1649163090230
      }
    },
    "domains": {
      "name": "domains",
      "version": 0,
      "value": {
        "domains": [
          "urn:li:domain:07142d47-87cd-4598-8a18-55e4f14ed43d"
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648910714655
      }
    },
    "subTypes": {
      "name": "subTypes",
      "version": 0,
      "value": {
        "typeNames": [
          "Database"
        ]
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893921676
      }
    },
    "containerProperties": {
      "name": "containerProperties",
      "version": 0,
      "value": {
        "name": "dh-test-ing-poi-evchargers",
        "customProperties": {
          "platform": "glue",
          "database": "dh-test-ing-poi-evchargers",
          "instance": "TEST"
        }
      },
      "created": {
        "actor": "urn:li:corpuser:UNKNOWN",
        "time": 1648893921631
      }
    }
  },
  "entityName": "container"
}
Copy code
{
  "urn": "urn:li:glossaryTerm:Source.Laadpaal locaties",
  "aspects": {
    "glossaryTermKey": {
      "name": "glossaryTermKey",
      "version": 0,
      "value": {
        "name": "Source.Laadpaal locaties"
      },
      "created": {
        "actor": "urn:li:corpuser:__datahub_system",
        "time": 1649250459742
      }
    }
  },
  "entityName": "glossaryTerm"
}
Hope this helps
b
@chilly-oil-22683! This definitely helps - I think I've identified the issue. In your first example, the urn you were looking at is
urn:li:glossaryTerm:Sources.Brainbee
. Notice the plural "Sources". In the second example (search), the glossary term appears to be
urn:li:glossaryTerm:Source.Brainbee
. Notice the "Source" singular. It appears to be that this one character difference in the primary key (the parent node) is actually causing this. Try associating the entity with the first urn -
urn:li:glossaryTerm:Sources.Brainbee
c
aah, sharp! Thanks