Repository navigation
Conversation
Topic schema fields rendered all at once, freezing the page for topics with
hundreds of fields. The schema tab now pages fields through
/v1/topics/name/{fqn}/columns, adds /columns/search for name, display name
and description matches at any depth, and saves field edits through
PUT /v1/columns/name/{fqn}?entityType=topic.
(cherry picked from commit 58274de)
A matched parent carried its children while a matching child was also returned as its own row, so the same field FQN rendered twice. (cherry picked from commit 9e149e7)
Field save errors now reach the description modal and tag editor, which toast and stay open instead of closing as if the save succeeded. A slower superseded field request no longer overwrites the newer page. The unknown topic test asserts the 404 status. (cherry picked from commit 031b5c9)
…cord the search contract - Field description/tag saves PATCH the topic again, so the shared topic and the column detail panel stay current, search rows keep their server shape, and the topic save flow (including approvals) is unchanged. The page reloads on the version bump. - Name sorting goes to the server before paging; /columns/search accepts sortBy=name and sortOrder. - ADR:2026-11-16-topic-schema-field-search-returns-flat-rows records the search contract. - Apply the CI formatter output to the changed UI and Playwright files. (cherry picked from commit 3d48a47)
Same-user edits in quick succession can share one topic version, so watching the version missed the reload and left saved tags stale. Watch messageSchema, which every saved update replaces. (cherry picked from commit e0ab49f)
❌ 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 |
- Topic field endpoints accept sortBy=schema to return fields in stored order; the Schema tab sends it instead of relying on ordinalPosition ties. - The Name sort is kept in the URL (fieldSort) with the page and search, so a reload returns the same rows. - Amend ADR:2026-11-16-topic-schema-field-search-returns-flat-rows (v2).
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsServer-paginated topic schema loading and nested search alter field retrieval and display; paging or matching errors could hide fields from users. Backports server-side paging, nested search, and Name sorting for topic schema fields to 2.1, so the Schema tab no longer freezes on topics with hundreds of fields. No open issues found; the schema-order trick for sortBy=ordinalPosition is closed without a fix in this PR. ✅ 1 closedClosed: Quality: Schema-order trick for /columns (sortBy=ordinalPosition) is not recorded
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #30677
Backport of #37862 to
2.1. It cherry-picks #37862's five code commits up toe0ab49f(-x, all applied cleanly) and regenerates the2.1Playwright impact map. #37862 has since merged. This backport also carries40c215a, which fixes two review findings raised here: an explicitsortBy=schemafor stored order, and the Name sort kept in the URL. The same commit is going tomainin #37902.Topics with hundreds of schema fields froze the Schema tab, because it rendered every field at once. The tab now pages fields from the server, like table columns:
GET /v1/topics/name/{fqn}/columns(page size 15/50, page kept in the URL). No sort keeps schema order.GET /v1/topics/name/{fqn}/columns/search?q=matches name, display name or description at any nesting level. Each match comes back once as its own childless row, paged on the server. The term is kept in the URL (columnSearch).The search contract is recorded in ADR:2026-11-16-topic-schema-field-search-returns-flat-rows.
Known limitation: the Tags and Glossary column filters cover only the current page, as on the data model page. It's an open question on #37862.
The recording and screenshots are on #37862, recorded against
main. The UI and service files are identical here.Type of change:
High-level design:
Same as #37862:
TopicRepository.searchSchemaFieldsByFQNflattens, filters, sorts and pages copies of the fields.TopicResourceexposes it under/columns/searchwith VIEW_BASIC.TopicSchema.tsxusesusePaginganduseTableFilters, with a request-id guard against stale responses. The version view still renders the full stored schema.Tests:
Use cases covered
Paging and a reload on page 2; nested search with server paging; a description edit saved and kept after reload; server-side Name sort; reload after a same-version save; fetch error toast; version view.
Unit tests
2.1:src/components/Topic/TopicSchema/TopicSchema.test.tsx— 16 passed.tsc(app and Playwright) is clean for the changed files, and the CI formatter sequence (organize-imports, ESLint--fix, Prettier) leaves no diff.Backend integration tests
Ran locally on
2.1at700b838e89e(mysql-elasticsearch, parallel lane):mvn -B verify -pl :openmetadata-integration-tests -am -Pmysql-elasticsearch -DintegrationTests.lane=parallel -Dit.test=TopicResourceIT→ PASSED — 260 tests, 0 failures, 0 errors, 21 skipped. This includes the new topic schema-field tests.Not run locally (pending, merge queue): the rest of the impacted plan (TableResourceIT, ContainerResourceIT, SearchIndexResourceIT, MessagingServiceResourceIT, TopicServiceHydrationIT, …).
Ingestion integration tests
Playwright (UI) tests
Pagination.spec.ts› Topic schema fields page pagination, andTopic.spec.ts› pages, edits and searches schema fields through the server.Not run on
2.1. On #37862 the twoPagination.spec.tstests passed locally (screenshots there). The rest run in the merge queue.Visual regression baselines
Manual testing performed
Manual checks and the recording are on #37862. They were recorded against
main, and the changed files are identical here.UI screen recording:
See #37862: the recording at its head and screenshots of paging, an edit kept after reload, sorting and nested search. This backport's diff matches #37862's for every changed source file.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.mdand whose bot review threads are all resolved.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues were found.Summary
This backport adds server-paged topic schema fields, nested-field search, and Name sorting.
Reviews (6) · Last reviewed commit: "Keep topic schema order explicitly and r..." · Reviewed by Greptile