Repository navigation
fix(domain): tasks follow the pick except on an asset, and more fixes from the domain filter retest - #37825
Conversation
Home "My Tasks", the inbox and the bell listed tasks from every domain under a pick, while a user's Tasks tab hid them, and an asset's Tasks tab counted its tasks but listed none when the asset was outside the pick. The withDomainFilter interceptor now scopes task requests like any other list, and leaves a request about given assets (aboutEntity, aboutEntityIds, dataset) unscoped, so an opened asset shows all its tasks and its count matches its list. Callers no longer add the domain to task requests themselves. Decision record updated (v3).
…in has no metrics
GET /v1/metrics/hierarchy under a pick whose domain holds no metrics returned
400 ("argument is null or empty") from a batch lookup given an empty id list.
…icked domain Test cases, test suites and incident searches filtered by a domain matched it exactly, so under a parent pick the items of its sub-domains were missing. The domain filter now matches the domain and its sub-domains, as the navbar pick does.
The Incident Manager lists and groups matched only the named domain, so under a parent pick incidents on test cases in its sub-domains were missing.
A task list filtered by a domain matched only that domain, so under a parent pick the tasks of its sub-domains were hidden from Home and the inbox.
… list Under a pick the Terms tab listed only the terms in the picked domain but its badge counted every term of the glossary.
…t-found or a redirect A domain-only user opening another domain's data product, service or table got "No Data Product found", an empty page, or a redirect to /403 (blank in Classic). Render the in-place permission placeholder these pages already use for missing view access.
/search/aggregate only got an ignored domain= param on GET and nothing on POST, so under a pick the Explore Domains facet still offered other domains and the Home "By connector" breakdown counted the whole catalog. Add the same domain clause /search/query gets, to the GET q filter and the POST body query.
The Domains column drew a plain globe and name, so a styled domain lost its colour and icon there. Render it with DomainTags, which resolves the style by domain id like every other domain chip.
The drawer stays mounted when closed, so selecting an asset, closing and reopening still showed "1 selected". Reset the selection and the failure and dry-run state when it closes.
An article from another domain opened with no "belongs to another domain" banner, unlike data asset pages. Render DomainMismatchAlert with the article's domains, which the page already fetches.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Search aggregates now follow the navbar pick, but the lineage graph shows every domain's nodes, so its filter dropdowns must offer their values too. Lineage quick filters send the skip-domain-filter header.
Under a pick each classification's tag count reused a fresh navbar filter, so the picked domain's sub-domains were looked up once per row. The batch now resolves it once and every count shares it.
The asset Activity tab list (and several asset count helpers) passed the pick explicitly, so only the count call ignored it and the tab showed a count over an empty list. The interceptor now removes a domain from any request about one asset (its tasks, its data access requests, its activity), whoever set it.
There was a problem hiding this comment.
Reviews are paused until your billing migration is complete. Open billing settings to continue.
…vice A 403 keeps the previously viewed service's details, so the placeholder named that service. It now names the service the URL asks for.
Code Review ✅ Approved 🟡 Medium risk 6 closed / 6 findingsReworking domain filtering across task, activity, tag, and data-quality lists could expose records beyond the intended selection or hide expected results. Domain filter retest fixes make work-queue task lists follow the navbar pick while asset-scoped task lists and Activity tabs stay unfiltered, extend sub-domain matching to DQ and task lists, and make classifications, tags and glossary term counts follow the pick. Resolved this session: explicit ✅ 6 closed✅ Quality: Explicit
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
Fixes #37846
Companion Collate PR: https://github.com/open-metadata/openmetadata-collate/pull/8572
Follow-up to #36483. Fixes what the end-to-end retest of the navbar domain pick found, in both AI and Classic mode, across admin, DataConsumer, DataSteward and domain-only users.
aboutEntity,aboutEntityIds,dataset) never does, so an opened asset shows all its tasks and its count matches its list. Decision record updated (v3)./metrics/hierarchyno longer returns 400 when the picked domain has no metrics./403in Classic mode.Details
Tasks
domainon/tasks,/tasks/assigned,/tasks/visibleand/tasks/count, and keepstaskout of the server-side pick (DomainFilterExclusions), so this is a UI change:withDomainFilterscopes/tasksGETs like other lists, and skips requests carryingaboutEntity/aboutEntityIds/dataset.ActivityFeedProviderandActivityFeedTabno longer add the domain themselves, which is what made the asset tab list and its badge disagree.TaskRepository.addDomainFilternow expands each domain to its sub-domains (EntityUtil.domainAndSubDomainIds, made public).Sub-domains
SearchListFilter.getDomainCondition: the explicitdomainsfilter now uses the same term-or-prefix clause as the navbar pick (only the DQ resources set it).TestCaseResolutionStatusResourcebinds the domain plus its sub-domains;ListFilter.testCaseInDomainConditionmatchesfromId IN (...). The nearest-level-decides rule is unchanged.Other backend
MetricRepository.groupInDomainPickskips the batch relationship lookup when there are no picked metrics (@BindListrejects an empty list).GlossaryRepositoryterm counts apply the navbar filter with the glossary as parent scope, as the term list does. New overloadEntityUtil.addNavbarDomainFilter(ListFilter, type, parent)reads the request's selection; bot and background threads have none.UI
useSwitchActiveDomaindropscurrentPage/cursorType/cursorValuefrom the URL before reloading.Not in this PR: search aggregates (Explore facet counts, Home "By connector") still count every domain under a pick, deferred as a follow-up since it changes every aggregate screen; the Context Center article tree still shows other domains' articles (filtering a tree can orphan an article whose parent is in another domain; needs a decision);
/403rendering blank in Classic mode for the other detail pages that still redirect there.Type of change:
Tests:
SearchListFilterTest,ListFilterTest,MetricRepositoryTest(new tests fail without the fix);EntityUtilTest,DomainNavFilterTeststill green.UserResourceIT.test_glossaryTermsFollowTheirEffectiveDomainnow asserts the term count.withDomainFilter,ActivityFeedProvider,DomainSelect,DomainFilterChip,useSwitchActiveDomain,DataProductsPage,TableDetailsPageV1,ServiceDetailsPage,domainFieldRenderers,KnowledgePageDetailComponent; each new test fails without its fix./tasks/assigned|visible|countand/tasks?aboutEntity=return the expected rows with and withoutdomain.Checklist:


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issue was established.Summary
Makes task queues follow the selected domain while keeping an asset’s own tasks and activity visible.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[GET request] --> B{About a specific asset?} B -->|Tasks or activity| C[Remove domain pick] B -->|No| D{Domain selected?} D -->|Yes| E[Apply domain pick] D -->|No| F[Keep request unchanged] C --> G[Server checks access] E --> G F --> GReviews (6) · Last reviewed commit: "Domain filter: ADR v5 records the in-pla..." · Reviewed by Greptile