OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Glossary term child count badge does not match listed terms (status-filtered list vs unfiltered count)

Open yan-3005 opened this issue 5 months ago • 1 comments

Description

On a glossary term's child listing, the count badge shows a number that does not match the terms actually listed. A category can display a count of 4 while showing only 2 (or 0) terms in the table.

This is a UI-side inconsistency: the count is derived from childrenCount, which counts all direct children regardless of status, while the listing API is filtered by status. By default the UI only lists terms with status Approved, Draft, or In Review, so any children in other statuses (e.g. Unprocessed) are counted but never shown.

Result: the user sees a non-zero count but an empty/short list, with no explanation of where the "missing" terms went.

Steps to Reproduce

  1. Have a glossary term/category with direct children where some children are in a status outside Approved, Draft, In Review (e.g. Unprocessed).
  2. Open the term's Glossary Terms tab: https://<env-url>/glossary/Category.Product%20Category/glossary_terms
  3. Observe the count badge shows the total child count (e.g. 4).
  4. Observe the table lists fewer terms than the count (e.g. 2, or none).

Evidence

Unfiltered listing (drives the count shown at the top) — returns 4:

GET /api/v1/glossaryTerms?directChildrenOf=Category.Product%20Category&fields=childrenCount,owners,reviewers&limit=50

Status-filtered listing (what the table actually renders) — returns 2:

GET /api/v1/glossaryTerms?directChildrenOf=Category.Product%20Category&fields=childrenCount,owners,reviewers&limit=50&entityStatus=Approved,Draft,In%20Review

The filter API behaves correctly. The problem is that the displayed count is not computed with the same status filter as the list.

Expected Behavior

The count shown must be consistent with the terms that are actually listed. Either:

  • The count reflects the same status filter applied to the list (so count == number of listable terms for the active filter), or
  • The full count is retained but the UI clearly surfaces that terms are hidden by the status filter (and lets the user reveal them).

A count of 4 with zero/two terms listed and no indication why is a bad experience.

Environment

  • Affected page: Glossary Terms tab (GlossaryTermTab)
  • Component area: UI (frontend). The list/filter API is correct.

Notes

Related context: terms can land in Unprocessed status when created via certain paths (e.g. MCP-created terms before the default workflow was applied), which makes this mismatch visible.

yan-3005 avatar Jun 04 '26 14:06 yan-3005

Please assign this to me

Vansh0310 avatar Aug 24 '26 10:08 Vansh0310