Repository navigation
Fixes #32374: serve the reindex entity list from the index registry - #32375
Conversation
The Search Indexing app's entity picker read a hardcoded `items.enum` in the UI-local schema JSON, so it was a per-build snapshot of a runtime fact and had drifted 15 entity types behind the index mapping registry. Selecting everything in the dropdown was therefore not the same as selecting `all`, which the app already expands from the registry. It also could never be right for a distribution that registers extra indexes: IndexMappingLoader merges elasticsearch/indexMapping.json plus elasticsearch/collate/indexMapping.json from the classpath at startup, so no enum baked into the UI bundle can express the reindexable set. Add SearchRepository.getIndexedEntityTypes() as the one definition and have both ReindexingOrchestrator.getAll() and a new GET /v1/search/entityTypes read it, so the picker and `all` cannot drift. The UI drops the enum and fills it in ApplicationsClassBase.importSchema, the single funnel AppDetails and AppInstall share; a failed fetch leaves only "All" selectable plus an error toast rather than breaking the whole form. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
❌ 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 |
There was a problem hiding this comment.
Pull request overview
This PR fixes drift in the Search Indexing application’s “entities to reindex” picker by removing the hardcoded UI schema enum and sourcing the entity-type list from the server’s merged index mapping registry (including distribution-specific indexes).
Changes:
- Add
GET /v1/search/entityTypes(admin-or-bot) backed bySearchRepository.getIndexedEntityTypes()and reuse it for"all"expansion inReindexingOrchestrator. - Remove the hardcoded
entities.items.enumfrom the Search Indexing application schema JSON (both source and committed parsed copy). - Fetch entity types in the UI (
getSearchEntityTypes) and inject them into the Search Indexing schema duringApplicationsClassBase.importSchema, with Jest + IT coverage.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/src/utils/ApplicationSchemas/SearchIndexingApplication.json | Removes hardcoded enum from the source schema. |
| openmetadata-ui/src/main/resources/ui/src/jsons/applicationSchemas/SearchIndexingApplication.json | Removes hardcoded enum from the committed parsed schema copy. |
| openmetadata-ui/src/main/resources/ui/src/rest/searchAPI.ts | Adds getSearchEntityTypes() REST helper for the new endpoint. |
| openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppDetails/ApplicationsClassBase.ts | Injects server-provided enum into SearchIndexingApplication schema and toasts on failure. |
| openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppDetails/ApplicationsClassBase.test.ts | Adds tests for dynamic injection, absence of hardcoded enum, error handling, and non-target apps. |
| openmetadata-service/src/main/java/org/openmetadata/service/search/SearchRepository.java | Adds getIndexedEntityTypes() (sorted keys from the merged index registry). |
| openmetadata-service/src/main/java/org/openmetadata/service/resources/search/SearchResource.java | Adds GET /v1/search/entityTypes endpoint (admin-or-bot). |
| openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/searchIndex/ReindexingOrchestrator.java | Uses getIndexedEntityTypes() to expand "all" consistently with the UI picker source. |
| openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/SearchResourceIT.java | Adds ITs for endpoint correctness (sorted, contains tableColumn) and authorization (403 for DataConsumer). |
Suppressed comments (1)
openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppDetails/ApplicationsClassBase.test.ts:69
- When the entity-type fetch fails, keeping
['all']in the injected enum preserves the ability to select the default/sentinel value while avoiding enum/default inconsistency during validation.
expect(schema.properties.entities.items.enum).toEqual([]);
expect(showErrorToast).toHaveBeenCalledWith(error);
});
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| entities: { | ||
| ...(schema.properties?.entities as RJSFSchema), | ||
| items: { type: 'string', enum: entityTypes }, | ||
| }, |
There was a problem hiding this comment.
playwright/e2e/Pages/SearchIndexApplication.spec.ts:330 looks like it will start failing with this change.
await ...getByRole('combobox').fill('Table');
const tableTitle = page.getByRole('tree').getByTitle('Table');The old enum had exactly one value containing table. The registry adds tableColumn, which TreeSelectWidget renders through startCase as "Table Column". AntD filters the tree on the node value using a case-insensitive substring match (rc-tree-select/OptionList.js:122), so typing Table now leaves two nodes visible.
Playwright's getByTitle also defaults to substring matching, so this locator resolves to 2 elements. waitFor (333), evaluate (336) and click (349) all run in strict mode, so line 333 would be the first to throw strict mode violation.
A minimal fix could be to make the match exact:
const tableTitle = page.getByRole('tree').getByTitle('Table', { exact: true });Might be worth running this spec locally before merge. The description mentions it exercises the picker "unchanged", but the list it renders is no longer the same, so I do not think we can rely on it as-is.
|
|
||
| HttpResponse<String> response = httpGetJson("/v1/search/entityTypes", consumerToken); | ||
|
|
||
| assertEquals(403, response.statusCode(), "Non-admin should not be able to list entity types"); |
There was a problem hiding this comment.
I think this will get a 404 rather than a 403.
authorizeAdminOrBot resolves the user before it can deny: DefaultAuthorizer:157 -> SubjectContext:63 -> SubjectCache.getUserContext -> Entity.getEntityByName. SearchResourceIT never creates [email protected], so that lookup throws EntityNotFoundException, which carries Response.Status.NOT_FOUND.
It could still pass by luck if another test class created that user earlier in the same server session, which would make it order-dependent rather than reliable.
AppOperationPermissionsIT.java:38-45 hits the same thing and works around it like this, if you want to reuse the pattern:
@BeforeAll
static void ensureDataConsumerUser() {
UserTestFactory.getDataConsumer(null);
}| @ApiResponse(responseCode = "403", description = "Admin only") | ||
| }) | ||
| public List<String> getIndexedEntityTypes(@Context SecurityContext securityContext) { | ||
| authorizer.authorizeAdminOrBot(securityContext); |
There was a problem hiding this comment.
One thing to consider: authorizeAdminOrBot is stricter than the page that calls this endpoint.
The Search Indexing app details page is gated on view permission rather than admin. SettingsRouter.tsx:551 passes hasViewPermissions(ResourceEntity.APPLICATION, ...), which is ViewBasic || ViewAll (PermissionsUtils.ts:113-114), and AdminProtectedRoute.tsx:34 renders children when isAdminUser || hasPermission. AppDetails.component.tsx:524 then calls fetchAppDetails -> importSchema on every mount.
So a non-admin holding ViewBasic or ViewAll on Application can open the page and would see a red error toast each time, for a request they never triggered.
Two ways to line the two sides up, whichever you prefer: authorize this endpoint against APPLICATION view permission instead of admin-only, or leave the endpoint as-is and skip the toast on 403 in ApplicationsClassBase.ts:47 while still toasting other failures.
| lazy(() => import('../ApplicationConfiguration/ApplicationConfiguration')) | ||
| ); | ||
|
|
||
| const SEARCH_INDEXING_APPLICATION = 'SearchIndexingApplication'; |
There was a problem hiding this comment.
Minor: this constant already exists as SEARCH_INDEXING_APPLICATION in src/constants/explore.constants.ts:117 with the same value, so you may want to import it instead of keeping a second copy.
✅ Playwright Results — workflow succeededValidated commit ✅ 1246 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 52m 45s ⏱️ Max setup 4m 20s · max shard execution 17m 43s · max shard-job elapsed before upload 21m 19s · reporting 6s 🌐 210.78 requests/attempt · 2.22 app boots/UI scenario · 13.45% common-shard skew Optimization targets still in progress:
🟡 1 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…spec manerow, on #32375: - The endpoint was admin-or-bot while the page that calls it is not. SettingsRouter renders AppDetails for `isAdminUser || hasViewPermissions(APPLICATION)` and AppDetails fetches the schema on every mount, so a viewer holding ViewBasic or ViewAll got a red 403 toast for a request they never triggered. Authorize on APPLICATION/VIEW_BASIC instead, which is exactly the page's gate. - The 403 assertion in SearchResourceIT would have been a 404: authorizeAdminOrBot resolves the subject first, and SubjectCache.getUserContext falls back to Entity.getEntityByName, which throws EntityNotFoundException for a user this suite never creates. It could only pass on suite ordering. Pin the user in @BeforeAll, as AppOperationPermissionsIT already does, and flip the assertion to the case that now matters: an Application viewer gets 200. - SearchIndexApplication.spec.ts would have broken. rc-tree-select filters on the node value (treeNodeFilterProp defaults to 'value'), so typing "Table" leaves `tableColumn` visible too, and rc-tree sets title="Table Column" on it; getByTitle is substring by default, so the locator resolved to 2 nodes and waitFor threw in strict mode. Made it exact. The Playwright run on the first commit was green because the impact map never selected this spec — the Settings/** entry picks no spec that opens an app config form. Added a mapping for the application config forms so a change to the schemas, the loader, or the endpoint that fills them selects it. That also puts this PR in a full run, so the locator fix gets exercised. Copilot: - 'all' is now in the injected enum. The backend sentinel is not an index, so the endpoint does not return it, but `default: ["all"]` has to validate against the enum; TreeSelectWidget already filters it out of the child nodes. Pre-existing inconsistency — the old hardcoded enum omitted it too — fixed while here. It also makes the fetch-failure fallback `['all']` rather than empty. - Reused SEARCH_INDEXING_APPLICATION from constants/explore.constants.ts instead of a second copy. Its own `SortingField` import is type-only, so this pulls nothing new into the bundle graph. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
🚦 Removed from the merge queue —
|
…ackend
Conflict in ApplicationsClassBase.ts: main replaced the template-literal
`import()` in importSchema with a glob loader map (`applicationSchemaLoaders`
from the new sibling .assets.ts, so ts-jest can mock what it cannot parse), which
rewrote the same lines this branch added the entity-list injection to.
Resolution keeps main's loader and re-applies the injection to the resolved
module. The react import also splits into `import type { ComponentType, FC }`
plus `import { lazy }`, matching main's move to type-only imports, so RJSFSchema
and AxiosError come in the same way.
main's new importSchema resolves to `{}`, so the two assertions this branch added
now name the shape they read instead of reaching through it untyped. The five
pre-existing `Property 'properties' does not exist on type '{}'` errors in the
same file are main's and are left alone.
|
Merged The conflictOne file: Resolution keeps main's loader and re-applies the injection to the resolved module: const module = await loader();
const schema =
(module as { default?: unknown }).default ??
(module as Record<string, unknown>);
return fqn === SEARCH_INDEXING_APPLICATION
? withSearchEntityTypes(schema as RJSFSchema)
: schema;The react import also splits per main's move to type-only imports, so import type { RJSFSchema } from '@rjsf/utils';
import type { AxiosError } from 'axios';
import type { ComponentType, FC } from 'react';
import { lazy } from 'react';Checked that main's glob mock ( One thing worth flaggingMain's new type EntitiesEnumSchema = {
properties: { entities: { items: { enum: string[] } } };
};I left main's 5 alone — not my change, and touching them widens the diff for no behavioural gain. Flagging rather than silently ignoring: Verification after the merge
Still outstanding and not something I can do: |
There was a problem hiding this comment.
🔵 Needs a closer look
The new Playwright impact-map entry omits openmetadata-service/.../resources/search/**, so changes to the new /v1/search/entityTypes endpoint may not trigger the intended SearchIndexApplication.spec.ts run.
Review details
Suppressed comments (1)
.github/playwright/impact-map.json:348
- The new impact-map entry is meant to cover the new backend endpoint
GET /v1/search/entityTypes, but thesourceslist only includes.../resources/apps/**and will not match changes under.../resources/search/**(whereSearchResourcelives). As a result, edits to the endpoint may still ship without runningSearchIndexApplication.spec.ts. Add the search resource (and optionally the core search package) to the sources list for this mapping.
"openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/searchIndex/**",
"openmetadata-service/src/main/java/org/openmetadata/service/resources/apps/**"
],
- Files reviewed: 13/13 changed files
- Comments generated: 0 new
- Review effort level: Lite
#32576 pruned one om-playwright/no-positional-locator entry out of eslint-suppressions.json (1323 -> 1322) without lowering the number recorded in corpus.test.mjs, so `the suppressions baseline matches its recorded state exactly` fails on main and therefore on every branch merged with it: + actual 'om-playwright/no-positional-locator': 1322 - expected 'om-playwright/no-positional-locator': 1323 Both files here are byte-identical to main, so this is not a violation this branch introduced or fixed — only the bookkeeping the pruning PR left behind. Lowering it is what the assertion message asks for; `yarn lint:playwright` is already clean at 0 errors, so there is nothing to prune.
There was a problem hiding this comment.
🔵 Needs a closer look
The new /v1/search/entityTypes endpoint’s authorization contract appears to diverge from the linked issue/PR description (admin-only vs Application-viewer readable) and needs an explicit decision/alignment before merge.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/AppDetails/ApplicationsClassBase.ts:61
- The error path always casts to AxiosError, so if getSearchEntityTypes fails with a non-Axios error (e.g. unexpected runtime error), showErrorToast will fall back to a generic message and lose the actual failure reason. Consider detecting an Axios-shaped error and otherwise toasting the Error message/stringified value so operators get a useful hint while still keeping the schema renderable.
openmetadata-service/src/main/java/org/openmetadata/service/resources/search/SearchResource.java:870
- The linked issue/PR description describes this endpoint as "admin-or-bot" / rejected for non-admins, but the implementation authorizes any principal with Application VIEW_BASIC. This expands access substantially (e.g. DataConsumer with broad view permissions) and changes the security contract. Please confirm the intended audience and align either (a) the authorization gate (e.g. authorizeAdmin/explicit bot policy) or (b) the issue/PR docs + tests to reflect that Application viewers can call it.
OperationContext operationContext =
new OperationContext(Entity.APPLICATION, MetadataOperation.VIEW_BASIC);
authorizer.authorize(
securityContext, operationContext, new ResourceContext<>(Entity.APPLICATION));
- Files reviewed: 14/14 changed files
- Comments generated: 0 new
- Review effort level: Lite
…ackend Conflict in corpus.test.mjs: main burned the playwright suppressions down further — no-blanket-test-slow is gone entirely (83 -> 0) and no-positional-locator is 1310 — and fixed the 1323/1322 bookkeeping this branch had patched. Took main's block wholesale; the one-line fix in 6b2682f is superseded and this file is byte-identical to main again.
There was a problem hiding this comment.
🟡 Changes recommended
There are at least two correctness/contract issues to resolve (Playwright impact-map source glob mismatch and an auth contract mismatch vs the PR/issue description) before this is safe to merge.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (2)
.github/playwright/impact-map.json:372
- The new Playwright impact-map entry is intended to cover the new backend endpoint, but the source glob points at
resources/apps/**while the endpoint lives underresources/search/**. As written, changes to SearchResource (including /v1/search/entityTypes) may not trigger the intended specs.
"openmetadata-ui/src/main/resources/ui/src/jsons/applicationSchemas/**",
"openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/searchIndex/**",
"openmetadata-service/src/main/java/org/openmetadata/service/resources/apps/**"
],
openmetadata-service/src/main/java/org/openmetadata/service/resources/search/SearchResource.java:871
- Authorization for this endpoint currently checks
ApplicationVIEW_BASIC, but the PR description/linked issue describe it as “admin-or-bot”. Please confirm the intended security contract and align either the implementation (e.g.authorizer.authorizeAdminOrBot(securityContext)) or the PR description/tests accordingly.
OperationContext operationContext =
new OperationContext(Entity.APPLICATION, MetadataOperation.VIEW_BASIC);
authorizer.authorize(
securityContext, operationContext, new ResourceContext<>(Entity.APPLICATION));
- Files reviewed: 13/13 changed files
- Comments generated: 1
- Review effort level: Lite
| } catch (error) { | ||
| // Leaves the picker with only "All" selectable rather than failing the whole form. | ||
| showErrorToast(error as AxiosError); | ||
| } |
ApplicationConfiguration validates with @rjsf/validator-ajv8 against the stored appConfiguration, so injecting `enum: ["all"]` on a failed fetch made a saved `entities: ["table", ...]` fail validation — during a transient outage an admin could not save the form at all, including edits to unrelated fields. Return the schema untouched instead: the picker degrades to a plain list, but the stored selection stays visible and editable. The toast still fires. Also add the endpoint's own files to the impact-map entry. It listed resources/apps/** and the searchIndex bundle but not the two files that actually produce the list, so editing /v1/search/entityTypes or getIndexedEntityTypes() would not have selected the picker spec — the exact gap the entry exists to close. Both found by Copilot on a111a47.
There was a problem hiding this comment.
🔵 Needs a closer look
It introduces a new backend API + authorization gate and a cross-layer UI schema injection path that should be validated by green CI (including integration/Playwright lanes) before approval.
Review details
- Files reviewed: 13/13 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
| Count | Rule |
|---|---|
| 1 | openmetadata-imports/no-internal-barrel-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/rest/searchAPI.ts:27:1 |
openmetadata-imports/no-internal-barrel-imports |
Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changedThere was a problem hiding this comment.
🟢 Approval recommended
The change centralizes the entity type source of truth end-to-end (backend + UI) and includes targeted regression tests to prevent future drift.
Review details
Suppressed comments (1)
openmetadata-service/src/main/java/org/openmetadata/service/resources/search/SearchResource.java:870
- PR description/test plan says GET /v1/search/entityTypes is rejected for non-admins, but this endpoint is explicitly authorized by APPLICATION/VIEW_BASIC (and the added IT even asserts a non-admin DataConsumer can read it). Please align the PR description (and any downstream docs) with the implemented authorization model so reviewers/users aren’t misled about who can call this endpoint.
public List<String> getIndexedEntityTypes(@Context SecurityContext securityContext) {
// Gate on Application view, not admin: SettingsRouter renders the app details page for
// `isAdminUser || hasViewPermissions(APPLICATION)` and that page fetches the config schema on
// every mount, so an admin-only check here would 403 a legitimate viewer on a request they
// never triggered.
OperationContext operationContext =
new OperationContext(Entity.APPLICATION, MetadataOperation.VIEW_BASIC);
authorizer.authorize(
securityContext, operationContext, new ResourceContext<>(Entity.APPLICATION));
- Files reviewed: 13/13 changed files
- Comments generated: 0 new
- Review effort level: Lite
🚦 Removed from the merge queue —
|
|
Both merge-queue failures on
|
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsFixes the Search Indexing entity picker to serve the current index registry instead of a stale hardcoded enum, closing a 15-entity gap and ensuring newly registered types are immediately selectable. The backend now exposes 💡 Edge Case: App-logo glob narrowed to *Application.svg drops non-conforming logos
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|
🚦 Removed from the merge queue —
|



Describe your changes:
Fixes #32374
The Search Indexing application's entity picker was populated from a hardcoded
items.enumin theUI-local schema JSON. That made a runtime fact (which indexes the server registered) into a
per-build snapshot, and it had drifted 15 entity types behind the registry:
entities.items.enumAbsent from the dropdown:
aiApplication,aiFrameworkControl,aiGovernanceFramework,aiGovernancePolicy,auditReport,contextMemory,llmModel,llmService,mcpExecution,mcpServer,mcpService,pipelineStatus,promptTemplate,relationshipType,tableColumn.So "check everything in the dropdown" was not equivalent to
all, even though the app alreadyexpands
allfrom the registry — every entity type added since the enum was last hand-edited wassilently unreindexable from the UI.
It also could never be correct for a distribution that registers extra indexes:
IndexMappingLoadermerges
elasticsearch/indexMapping.jsonpluselasticsearch/collate/indexMapping.jsonfrom theclasspath at startup. Collate forked this entire schema file just to widen the enum, and that fork
had drifted too.
Type of change:
High-level design:
One definition, two readers — so they cannot drift.
SearchRepository.getIndexedEntityTypes()— sorted keys of the merged index mapping registry.ReindexingOrchestrator.getAll()now calls it (was inlininggetEntityIndexMap().keySet()), sothe
allexpansion and the picker are the same set by construction.GET /v1/search/entityTypesserves it, authorized againstAPPLICATION/VIEW_BASIC— the same gate as the page that calls it (SettingsRouterrendersAppDetailsforisAdminUser || hasViewPermissions(APPLICATION), and that page fetches the schema on every mount). It was admin-or-bot in the first revision; changed after review, because admin-only would 403-toast a legitimate viewer on a request they never triggered. Placed onSearchResourcebecause that iswhere
searchRepositoryand the sibling registry endpoints (/templates,/stats,/reindexEntities) already live.UI
SearchIndexingApplication.json— from the source underutils/ApplicationSchemas/and the tracked parsed copy underjsons/applicationSchemas/(this repo commits the parsed output; editing only the source would leave the shipped schema stale).
getSearchEntityTypes()added torest/searchAPI.ts.ApplicationsClassBase.importSchema, the single funnelAppDetailsandAppInstallboth go through, so neither call site needs to know about it.
Failure mode. RJSF picks the multiselect widget off
items.enum, so the enum has to be presentat render time. A failed fetch injects an empty enum — the tree still renders with "All" selectable
(and
["all"]is the default and the common choice) — plus an error toast. Letting the fetch throwwould have failed the whole config form for what is an enrichment of one field.
Alternatives rejected. Generating the enum into the schema JSON at build time from
indexMapping.json: needs new codegen wiring, still leaves Collate with its own generated fork, andstill cannot see a classpath merge that only exists at runtime — which is the actual bug.
Deliberately out of scope — same shape, different sources of truth; do not point this endpoint
at them:
RdfIndexApp.jsonentities— the triplestore entity list (app,bot,dataContract, …), notsearch indexes.
CacheWarmupApplication.jsonentities— repository-backed types, and"all"is a real enummember there.
Compatibility. Additive endpoint; no schema or migration changes. Stored
appConfigurationvalues are untouched — the backend schema's
entitieswas always a plainstring[]with no enum, sonothing that validates today stops validating.
tableColumnand friends now become individuallyselectable; they were already included whenever
allwas used, so this is not a new code path.Tests:
Use cases covered
registered, including ones added after this build was cut.
code.
GET /v1/search/entityTypesis rejected for a non-admin.Unit tests
openmetadata-ui/.../AppDetails/ApplicationsClassBase.test.ts:the enum is ever re-added)
AppDetails+AppInstall+TreeSelectWidget:21/21 pass.
jacoco:report/yarn test:coveragewere not run.Backend integration tests
openmetadata-integration-tests/.../SearchResourceIT.java:testEntityTypesComesFromTheIndexRegistry— 200, non-empty, sorted, and containstableColumn(which the old hardcoded enum lacked, so its presence is what proves the list is read from the
registry rather than copied)
testEntityTypesIsReadableByApplicationViewer— 200 and a non-empty list for aDataConsumer, pinning that an Application viewer is not 403'd. (DataConsumergrantsViewAllon all resources and is the default role, so there is no clean 403 case left to assert without building a deny policy — say the word if you want one.)first real run.
Ingestion integration tests
Playwright (UI) tests
SearchIndexApplication.spec.tsalready drives this picker (it searches forand toggles "Table"), and it now exercises the server-driven list unchanged — which is the useful
end-to-end signal. Happy to add a dedicated spec if reviewers want one.
Manual testing performed
mvn compile -pl openmetadata-serviceandmvn test-compile -pl openmetadata-integration-tests: pass.mvn spotless:apply: no changes.yarn lint:baseon changed files: 0 errors.prettier --check: clean.generateApplicationDocs.jsdoes not consumeitems.enumby regenerating all app docs:zero diff.
UI screen recording / screenshots:
Not attached — I did not have a running stack to record against, so I cannot honestly claim this.
The visible change is that the existing tree-select lists more entity types; there is no new UI
surface. If a recording is required before merge, please say so and I will get one.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.no migration is needed — stored configs were never validated against it.
test and the
tableColumnassertion in the IT both fail if the stale-list behaviour returns.Downstream
Collate can delete its
SearchIndexingApplication-collate.jsonfork once this lands and the submodulepin moves; no Collate backend change is needed, because the classpath merge in
IndexMappingLoaderalready makes this endpoint return the Collate-correct list. Companion Collate issue:
https://github.com/open-metadata/openmetadata-collate/issues/3946