OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Unable to filter and get only root level Glossary Terms

Open darth-coder00 opened this issue 4 years ago • 3 comments

Affected module Does it impact the UI, backend or Ingestion Framework? - backend

Describe the bug Unable to get only list of Glossary Terms that do not have any parent

To Reproduce

  • Hit API /api/v1/glossaryTerms?glossary=<GLOSSARY_ID>&parent=null

Expected behavior Should have some way to filter out Glossary Terms that do not have any parent

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: [e.g. 0.8]
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context None

darth-coder00 avatar Feb 25 '22 19:02 darth-coder00

@darth-coder00,

GET .../api/v1/glossary=GlossaryID

Gives all the terms in the entire glossary. Can you for now filter this on the UI and build a list of root terms where parent field is not present in the term that is returned. While it can be quickly fixed in the backend, doing it the right way is quire involved.

GET .../api/v1/glossary=GlossaryID&parent=parentID

This works to get terms that are children of glossary term identified by parentID and not at the root.

Let's keep this issue open to provide a way to support getting the root terms.

CC @harshach

sureshms avatar Feb 26 '22 05:02 sureshms

@sureshms do we want to do this in this release?

harshach avatar Apr 11 '22 01:04 harshach

@sureshms @harshach can I pick this up?

parthp2107 avatar May 02 '22 12:05 parthp2107