Skip to content

The Domain panel does not work on the Classification page #38592

Description

@mortennaess

Affected module

UI

Describe the bug

On the Classification page (Govern › Classifications › ), the Domains panel does not work:

  1. When you add a domain (Domains + › select a domain › Apply), the toast "An unexpected error occurred." shows. The UI sends no request to the server.
  2. When a classification already has a domain (set through the REST API), the Domains panel shows nothing, but the API response that the page loads contains the domain.

The browser console shows:

TypeError: Le(...) is not a function
    at ot (/assets/DomainSelect-oio4LLJb.js:1:1023)
    at /assets/DomainLabel.component-CTfaXhGD.js:1:1142
    at /assets/DomainSelect-oio4LLJb.js:1:4329
    at /assets/vendor-untitled-B_OciFo4.js:2:556225
    at /assets/vendor-aria-BOnwjigg.js:8:68053
    at /assets/vendor-aria-BOnwjigg.js:1:24903
    at onClick (...)

To Reproduce

  1. Log in as admin.
  2. Create a classification (UI or API), for example domain-test. Do not add tags.
  3. Make sure at least one domain exists.
  4. Open Govern › Classifications › domain-test.
  5. In the right panel, click Domains +.
  6. Select a domain (tick its checkbox) and click Apply.
  7. See the toast "An unexpected error occurred." The server access log has no PATCH /api/v1/classifications/{id}.

To see the second symptom:

  1. Set a domain on the classification through the API:
    PATCH /api/v1/classifications/{id}
    Content-Type: application/json-patch+json
    
    [{"op": "add", "path": "/domains", "value": [{"id": "<domain id>", "type": "domain"}]}]
    
    The response is 200. The new version has fieldsAdded: domains.
  2. GET /api/v1/classifications/name/domain-test?fields=owners,usageCount,termCount,domains returns the domain in domains. This is the same request that the page makes.
  3. Reload the classification page. The Domains panel is still empty, and the domain picker does not show the domain as selected.

Expected behavior

  • Apply saves the domain on the classification (PATCH /api/v1/classifications/{id} with /domains).
  • The Domains panel shows the domains of the classification, the same as on a glossary or a data asset.

OS

No response

Python version

No response

OpenMetadata version

2.1.0

OpenMetadata Ingestion package version

No response

Additional context

Analysis

In DomainSelect-*.js, the save handler is:

ot = async (t, e, r, s, i, f) => {
  const o = await Le(e)(r, { fields: "domains" });   // Le = entity-type -> "get by name" API map (AssetsUtils)
  ...
  const p = await we(e)(s, h);                       // we = entity-type -> "patch" API map
  ...
}

I paused on the exception and read the arguments in the ot frame: e (entity type) is undefined, and r and s (entity FQN and id) are "". With e === undefined, Le(e) returns undefined, and the call throws.

The API maps in AssetsUtils-*.js do contain classification ([EntityType.CLASSIFICATION] maps to the tagAPI get and patch functions). So it looks like the Classification page renders the domain component without the entity type, FQN and id. This probably also explains why the panel shows no existing domains.

The REST API works: PATCH /domains on a classification succeeds and GET ...?fields=domains returns the domain.

Pre-submission checklist

  • I searched for duplicate issues.
  • I removed credentials, hostnames, emails, and other sensitive data from logs and config.

Update: related issue fixed in the same PR (#38641)

Flash when creating a classification: after Add Classification › Save, the page briefly showed the previously selected classification with an empty, loading tags table before switching to the new classification's "Add the first tag" state. Expected: the new classification opens straight on its empty state.

#38641 fixes both this and the Domains panel issue above. It also makes sure that a failed domain save leaves the panel showing the previously saved domains.

Activity

  1. added
    bug
    on Nov 24, 2026
  2. added this to Shipping and removed this from Roadmapon Nov 25, 2026
  3. added theissue type on Nov 25, 2026
  4. moved this to In Progress 🏗️ in Shippingon Nov 25, 2026
  5. self-assigned this
    on Nov 25, 2026
  6. moved this from In Progress 🏗️ to Done ✅ in Shippingon Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

  • Status
    Done ✅
  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions