Repository navigation
Fixes #30677: Paginate topic schema fields from the server - #37862
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.
A matched parent carried its children while a matching child was also returned as its own row, so the same field FQN rendered twice.
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.
…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.
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.
Code Review ✅ Approved 🟡 Medium risk 2 closed / 2 findingsServer-side topic-schema pagination/search changes field retrieval, while save-triggered reloads affect edits; paging or stale-state errors could hide fields or updates. Topic schema fields now load one server page at a time with server-side Name sorting and nested search, and field edits PATCH the topic. Resolved this session: saving a field in search mode no longer puts its children back into the flat list, and the new ✅ 2 closed✅ Bug: Saving a field in search mode puts its children back into the flat list
✅ Quality: New topic /columns/search contract has no decision record
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 |
|
Backport to |
Main pages topic schema fields from /topics/name/{fqn}/columns and saves
field edits with PUT /columns/name/{fqn} (#37862); the topic page tests
now serve the fields that way, held inside the topic like a data model's
columns.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…arch specs to browser tests; run only affected browser tests (#36198) * test(ui): add Vitest browser-mode UI integration tests and migrate Pagination.spec.ts * test(ui): unmount before resetting MSW handlers; keep coverage on failure vitest-browser-react unmounts in the next test's beforeEach, so the global afterEach reset handlers and the URL under a still-mounted page, which then refetched and got wrong-shaped responses (unhandled paging/permission errors). Also write lcov when a test fails so one flake can't drop Sonar coverage. * ci(ui): POC workflow for Vitest browser tests with coverage comment and stability runs Runs the browser suite with istanbul coverage and posts a Jest-style coverage and JUnit comment, plus five shuffled no-retry runs whose failures are summarized in a second comment. Drops the duplicate patch file. * test(ui): mock approval-workflow endpoints main added; keep CI timings on failure main now calls /metadata/types/workflows/approvalEnforcedEntityTypes and /changeRequests from entity pages, which the strict unmocked-API check caught. The workflow now records wall time and uploads screenshots even when tests fail. * test(ui): entity-page harness for browser tests and the migratedTo marker Adds a Data Steward persona built from the seeded policies (server-accurate ViewAll/EditAll expansion and notAllow), an entity server that applies the page's JSON patches, a search fixture keyed by index alias, and the first migrated flow: owners add/replace/clear on the table page. Drops the AntDConfigProvider main removed. migratedTo.browser/javaIT tags Playwright tests whose coverage moved, with the replacement in an annotation. * test(ui): migrate EntityDataSteward table tests to browser mode * test(ui): run the EntityDataSteward browser tests for all 15 entity types * test(playwright): mark EntityDataSteward tests migrated to browser mode * test(ui): split EntityDataSteward browser tests into one file per entity type Vitest runs a file in one worker, so the 195 cases ran serially (6m18s locally). The flows now live in entityDataSteward.contract.tsx and each entity type has a thin file, so workers run types in parallel (4m25s on 3 workers). The Playwright marker points at the new files. * test(ui): mark Playwright tests covered by Java ITs with migratedTo.javaIT * test(ui): drop AntDConfigProvider from the browser-test harness main removed it with the antd Form/Select/Input migration (#35509); the app no longer mounts it. * test(ui): speed up browser tests: short steward schema, shared page per worker The Data Steward flows edit only the first column, yet the Table page rendered 50 of 120 columns on every re-render (~2x per test). Serving 15 columns and reusing each worker's page across files (isolate: false, so the app loads once per worker instead of once per file) takes the entity matrix from 4m25s to 2m01s locally; the whole suite passes shuffled with it. * test(ui): migrate EntityDataConsumer flows to browser tests Shares the entity configs and steps with the Data Steward contract (entityMatrix.ts) and adds a DATA_CONSUMER persona whose noOwner()/isOwner() rules are evaluated against the entity's owners, as the server does. * test(playwright): mark EntityDataConsumer tests migrated to browser tests * fix(ui): cancel Searchbar's pending debounced search on unmount Closing a picker within typingInterval of typing still fired the search for a list that was gone (a wasted request and a state update after unmount). The browser tests surfaced it as a stray /search/query in the next test. * test(ui): name the index and query of an unmocked API call A stray search is then traceable to the picker that sent it. * fix(ui): cancel Searchbar's pending search on unmount only The previous cleanup also ran whenever the debounce was recreated, i.e. whenever the parent passed a new onSearch, so a search typed during such a re-render was silently dropped (pagination search tests caught it on CI). Keep the latest debounce in a ref and cancel it from an unmount-only effect. * test(ui): give the instrumented coverage run a 30 s test timeout Istanbul slows every test; SchemaTable's Next/Previous test passed in all five uninstrumented runs but crossed 15 s under coverage. The strict 15 s limit stays for test:ui:run, which the stability runs use. * ci(ui): cache Playwright Chromium and skip its apt deps in browser-test setup A stability run timed out at 30 min after its runner spent ~10 min on playwright install --with-deps fetching fonts from a slow apt mirror. The runner image already has headless Chromium's libraries; cache the browser per Playwright version. * test(ui): migrate ServiceEntity flows to browser tests * test(playwright): mark ServiceEntity tests migrated to browser tests and Java ITs * test(ui): retry announcement card actions closed by a late refetch * ci(ui): shard the browser-test coverage and stability runs across 3 runners One runner took ~10 min for the 510-test suite. Coverage shards write blob reports that a report job merges (vitest --merge-reports --coverage) into the single summary and JUnit file the PR comment uses; each shuffled stability run is split the same way and the report sums its shards. * ci(ui): install the ANTLR CLI from a cached pinned jar in browser-test setup make install_antlr_cli tries apt first, which took 9-10 min on several runners (each shard paid it). Use the Makefile's pinned 4.9.2 jar and checksum, cached, and put it on PATH. * test(ui): migrate Entity header, announcement and delete flows to browser tests * test(ui): allow 30 s per browser test for a page's cold first load TableVersionColumns failed once in 15 shuffled shard runs: its page took over 15 s to render on its first load in that worker (isolate:false loads a page's module graph once per worker). Coverage runs get 45 s. * test(ui): confirm each tag and data-product pick before saving A picker re-renders its options when its search lands. pickTag waited for any earlier query with the same term, so a repeat toggle could click while this search re-rendered the tree, and the page saved without the tag (ServiceEntity.PipelineService tags). The data product picker never waited for its search, so a removal click could be lost the same way (EntityAdmin.Worksheet domain flow). Each pick now waits for the search sent after its own keystrokes, then clicks the option until the DOM shows the wanted state (tree data-selected, menu aria-checked) before Update; the data product save also waits for its PATCH. Also shares the tag/glossary pickers, a column read and search endpoint on the column fixture, data model columns backed by the entity (row PUTs and panel PATCHes reach the same columns), and a second child per fixture, for the column panel tests. * test(ui): migrate Entity column detail panel and child-table flows to browser tests * test(ui): migrate Entity Table tab flows to browser tests * test(playwright): mark Entity tests migrated to browser tests and Java ITs * test(ui): wait for the team owner search so it cannot land in the next test The team picker's debounced search could fire after the owner flow ended and reach the next test in the same worker as an unmocked call ("GET /search/query?index=team&q=PW Team 2" failing PipelineTasks and SchemaTable under --sequence.shuffle). Wait for it like the user picker. * test(ui): wait for the glossary picker's search and pick tags and terms by intent The glossary picker read a term's selected state before its own search had re-rendered the tree, so on a slow (coverage) run it could 'confirm' a state that was already true and save nothing: PW_Term_1 stayed after its removal. Wait until the search has filtered the tree, and let the add/update/remove helpers pass the wanted state instead of inferring it from the DOM. The tag picker's search wait gets a 10 s ceiling instead of expect.poll's 1 s. * test(ui): re-click a picker trigger until the picker opens A column panel re-rendering under the click dropped it, so the glossary picker never opened (EntityColumnPanel.Pipeline, once in 15 shard runs). Click until the picker's search box shows, as the Playwright helpers do. The owner search wait gets the same 10 s ceiling as the others. * ci(ui): retry yarn install in browser-test setup A shard failed before running a test because the registry answered 502. * test(ui): open the description editor through openPicker; give re-clicks a grace period The DashboardDataModel column panel's description editor never opened once on CI: the click was lost to a re-render. saveDescription now takes the trigger and clicks it until the editor shows. openPicker waits 3 s before re-clicking, so a picker that is merely slow to open is not closed again, and polls the DOM instead of catching a failed expect.element (a caught browser assertion still fails the test). * test(ui): give expect.poll and expect.element a 10 s default in browser tests A StorageService tag test failed once in 15 shard runs 2.5 s in: the 1 s default poll checked the server before the page's tag PATCH landed on a busy runner. A condition that never comes true still fails. * test(ui): migrate CustomProperties flows to browser tests * test(playwright): mark CustomProperties tests migrated to browser tests * test(ui): migrate AdvancedSearch query builder flows to browser tests * test(playwright): mark AdvancedSearch tests migrated to browser tests * test(ui): let a newly added advanced search rule settle before filling it Under a shuffled run the second group's rule sometimes kept the default Owners field while its select showed the picked one. Wait for the new rule to show its default field, and refill a rule whose field reverted. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): fix browser test races seen under coverage Count Explore searches from before the quick filter pick, render Explore once per custom property search test, and give a cold first load of the settings and Explore pages 90 s under istanbul. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): run the browser suite on 5 shards, 3 shuffled stability runs The suite grew to ~1,060 tests with CustomProperties and AdvancedSearch; three shards ran past 10 minutes each. Five shards keep each job short, and three shuffled runs (15 jobs) keep the total near 20 jobs per push. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(playwright): mark specs covered by the new Java ITs Search RBAC (asset, column, explore and type counts), API collection owner inheritance, rename consolidation for data products, tags and glossary terms, approve/reject after a glossary term move, task resolution on every entity type and the 16-type custom property contract now carry migratedTo.javaIT markers. Delete tests split to BaseEntityIT#delete_async_soft_delete, which exercises the async endpoint the UI calls, then restores; Database gains a marker and Database Schema switches to it. Table and Database Service stay the real-server delete flows. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(ui): show the held field when a query builder Field box is left unpicked Typing a field name filters the selected field out of the Field combobox. Left without a pick (blur or Escape), React Aria commits the selection it can no longer find as null, and OMFieldSelect ignored null, so the box kept the typed text: it showed "Name" while the rule still filtered on Owners and the search went out on Owners. A browser test that misses the option click under load hit exactly this (the advanced search "two conditions as a group" flake). Reset the box to the selected field's label on that commit. The browser helpers now leave the box after picking, so it shows what the rule holds rather than the typed filter, and pick again if a click missed. That replaces the earlier settle-wait and fillRule retry, whose premise (a new rule resetting its field) did not hold up: instrumented runs showed the pick never reached the rule. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): scale suite-level time limits under coverage A describe-level { timeout } overrides the CLI --testTimeout, so the 45 s coverage limit never reached suites that set their own (60-150 s), while istanbul made their cold first page load several times slower: CustomPropertyCards' first test took 63 s on a coverage shard (5-8 s uninstrumented). suiteTimeout(ms) doubles those limits under --coverage. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(ui-core): keep a staged TreeSelect pick across an equal value An entity refetch rebuilds the tags array the glossary and tag pickers receive; TreeSelect resynced on value identity and discarded the staged draft, so Apply saved nothing. Resync on the selected ids instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): drop the browser-test stability runs The shuffled no-retry runs showed the suite stable; the workflow now runs the browser tests once, with coverage, on UI and core-component changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): drop the browser-test stability runs The shuffled no-retry runs showed the suite stable; the workflow now runs the sharded browser tests once, with merged coverage, on UI and core-component changes (and on changes to its setup action). Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(playwright): keep migrated pagination tests, marked @migrated-browser The 35 Pagination E2E tests covered by browser tests keep running, tagged with their replacement, until the browser tests are validated and PaginationIT walks cursors for every listed entity type. Records the layering rule as a decision. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): keep browser-test failure handling when the comment cannot post Skips the coverage comment on fork PRs and lets it fail without failing the job; formats three browser-test files. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): reset browser-test state even when a request never settles Co-Authored-By: Claude Opus 5.5 <[email protected]> * style(ui): organise imports and format migrated specs and browser tests Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): run only the browser tests a pull request affects The full run on main records which source files each browser test file executes (coverage counters, src/test/browser/impact.ts) and keeps the map in the Actions cache. A pull request selects the test files that executed its changed code, plus the tests reaching changed helpers, direct imports of executed files, and changed en-us.json keys. A missing map, or a change to test setup, configs, dependencies or core components, runs everything. The static import graph cannot do this alone: lazy imports tie ~1,000 modules into one cycle (openmetadata-collate#7947). Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): record the impact map on every full browser-test run Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): keep each shard's impact records when merging the map Shards name their record file after the process id, which repeats across runners; merged into one folder they overwrote each other (104 of 130 test files mapped). Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(ui): drop an internal ticket reference from the browser-test selection notes Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): re-click the column panel's Data Quality tab if a re-render drops it CI screenshot showed the panel still on Overview after the click. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): scale every cold-load wait for coverage runs A coverage run roughly doubles a cold page load, but fixed 60-90 s element and test limits did not scale with it; the impact-analysis test timed out with the lineage tab still loading. scaled(ms) applies the same factor as suiteTimeout. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(agents): say which UI test layer a check belongs in A path-scoped rule for browser tests and Playwright specs: pick the layer (Jest, browser test, Java IT, Playwright journey), write a browser test with the shared fixtures, and tag a moved Playwright test instead of deleting it. The Playwright rule and test-enforcement skill point to it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): run the full browser suite in the merge queue; report changed-code coverage The merge queue now runs every browser test file (when the queued change touches the UI), so a selection miss cannot reach main, and its passing run publishes the impact map as an artifact pull requests download (queue caches are not readable from pull requests). Push-to-main runs go. The PR comment reports what ran and why, the result, and how many of the changed lines the tests that ran executed, instead of an overall coverage percentage that only reflects whichever tests were selected. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(ui): ignore browser-test report outputs Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): mock main's new app-shell calls; follow its standard page sizes Main added GET /domains/styles and /ontologyConcepts/boundTo calls to every entity page, and moved list pages to 15/25/50 (#35288); the browser tests now answer both calls and read PAGE_SIZE_BASE. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): import PAGE_SIZE_BASE in the pagination contract Co-Authored-By: Claude Opus 5.5 <[email protected]> * style(ui): format two browser tests' imports Co-Authored-By: Claude Opus 5.5 <[email protected]> * style(ui): format two tagged Playwright specs Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): let renderApp take a distribution's router and providers Collate mounts its own router (Collate routes, then AuthenticatedAppRouter) and adds a provider; with these options its renderApp reuses the same provider stack instead of repeating it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): match the Explore panel's renamed Custom properties tab Main renamed the right panel tab from "Custom property" to "Custom properties"; the custom-property value tests clicked the old name. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(playwright): auto-refresh impact-map.generated.json * test(ui): follow main's custom-property settings changes Main (#36808) labels the type "SQL Query" and names the property in the delete confirmation by its display name inside a warning sentence. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(playwright): auto-refresh impact-map.generated.json * ci(ui): run browser tests on ubuntu-24.04 with read-only permissions ubuntu-latest moved to 26.04, which Playwright 1.57 cannot install Chromium on; main's Playwright workflows pin 24.04 too. Main's PR workflow security check requires read-only permissions on pull-request jobs, so the results go to the job summary instead of a PR comment. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): pull requests only restore browser-test caches; refresh the impact map Main's CI check forbids cache saves from pull-request jobs; the setup action restores Chromium and the ANTLR CLI and saves them only outside pull requests. Co-Authored-By: Claude Opus 5.5 <[email protected]> * style(ui): format MetricSearch.spec.ts Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): serve a topic's schema fields through the columns API Main pages topic schema fields from /topics/name/{fqn}/columns and saves field edits with PUT /columns/name/{fqn} (#37862); the topic page tests now serve the fields that way, held inside the topic like a data model's columns. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): treat core components as a library for browser-test selection A core-components change no longer runs every browser test. It runs core's own tests and build in a new core components job; until now no CI ran core's Vitest suite at all. Six tag tests had rotted unnoticed: main made a badge's tooltip trigger a non-focusable span (no nested buttons), and the tests still expected a button. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): pagination search checks the rows it shows; drop unused Sonar path Search hits now come back in a different order from the list, and the contract asserts the visible rows after search, Next and reload, so a page that sends the right request but keeps showing old rows fails. Sonar never receives browser coverage yet, so its lcov path is dropped. The agent rule names only helpers that exist on this branch. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(agents): name the browser-test helpers this branch adds Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): wait for network idle, not fixed sleeps, in the pagination contract settle() slept 300 ms. The contract now waits until MSW has nothing in flight and no new request for a short quiet window, which is what a request count needs to be final; render waits poll for the row. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): share the network-idle wait as src/test/browser/network.ts Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): wait for network idle instead of fixed sleeps in setup and advanced search Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): address review on the browser-test setup - Data Models and Stored Procedures: their browser tests are pinned failing by a product bug (#38295), so their Playwright tests stay untagged; double fetch filed as #38296. Migration doc counts and rows updated. - Decision record is Proposed until the team signs off. - No Sonar claims (it does not read browser coverage yet); no unused JUnit. - The workflow also runs on setup-action changes; the setup action caches Chromium and the ANTLR CLI. - setup.ts resets the app-wide zustand stores between tests. - networkIdle counts /api requests only and notes its quiet-window limit. - Screenshot comparison runs on Linux only (its baseline's platform). - Contract: two-page assumption checked, empty-record guard, isListPage shared, search mock scope documented; msw resolutions dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Address review on browser-test migration and selection - SearchBar: one debounced search per typingInterval reading the latest onSearch, so a rerender then unmount leaves no old timer running. - TreeSelect: resync on the selected nodes' content (id, label, data), so a renamed selection updates while an equal rebuilt value keeps the draft. - Selection: a changed screenshot baseline runs its test, global styles run everything, and a deleted source file still selects its tests. - Workflow: manual runs always run in full; a run that selects nothing still updates the PR comment with why. - Tests: no as-unknown-as casts (typed EntityLike children, generic column fixtures); setup.ts store reset and the Bots fixture now type-check. - pickOption keeps its confirm-then-repick, documented as the one sanctioned re-attempt, and the rule now says when that is allowed. - Decision record for the selection policy. Co-Authored-By: Claude Opus 5.5 <[email protected]> * style(ui): fix import formatting in entityMatrix.ts Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(ui): run the full browser suite in the queue for core changes; fail when selection fails A core-only pull request still runs core's own tests, but the merge queue now runs every browser test for it, so a core change that breaks the app cannot reach main. If test selection fails, the report check fails instead of being skipped (a skipped required check passes). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Describe your changes:
Fixes #30677
Topics with hundreds of schema fields froze the topic page for 10s or more, because the Schema tab rendered every field at once. The tab now pages fields from the server, the same way table columns do:
TopicSchemaloads one page at a time through the existingGET /v1/topics/name/{fqn}/columns(page size 15/50, page kept in the URL).GET /v1/topics/name/{fqn}/columns/search?q=matches name, display name or description at any nesting level. Results are a flat list in schema order, each match without its children, so a matched parent and a matched child never render the same FQN twice. The search term is kept in the URL (columnSearch), like the table page.sortBy=name&sortOrder), on both/columnsand/columns/search. No sort keeps schema order.Type of change:
High-level design:
TopicRepository.searchSchemaFieldsByFQNflattensmessageSchema.schemaFields, filters on name/displayName/description (case-insensitive), and pages the matches.TopicResourceexposes it under/columns/searchwith VIEW_BASIC authorization, the same as/columns./columnsdefaults tosortBy=name. The UI sendssortBy=ordinalPosition; topic fields have no ordinal position, so every field ties and the stable sort keeps schema order. Changing the endpoint default would change its contract for other API clients, so I left it.TopicSchema.tsxmirrorsSchemaTable/ModelTab:usePagingplususeTableFilters(columnSearch), and a request-id guard so a superseded response can't overwrite a newer page.messageSchema, so a link to a field on another page still opens its detail panel.updateFieldDescription/updateFieldTagshelpers on the fullmessageSchemaand callonUpdate. No new save endpoint is used.visualData.ts) serves topic fields on/columns.messageSchema. This fixes the render cost, not the payload size; splitting the payload would change the entity contract.Known limitation (open question for review): the Tags and Glossary column filters only cover the current page, as on the data model page. Tables filter tags on the server. The fix would add
tags/glossaryTermsparams to the topic/columns/searchendpoint. I can add that here or in a follow-up.Tests:
Use cases covered
Unit tests
src/components/Topic/TopicSchema/TopicSchema.test.tsx— 15 passed (new: server fetch, page contents, description save through the topic update, reload after a same-version save, server-side Name sort, fetch error toast, version view).TopicSchema.tsxcoverage: 88.7% lines / 88.4% statements (yarn jest src/components/Topic/TopicSchema --coverage).TablePureUtils.tsandplaywright/utils/entity.tsare no longer changed by this PR.TopicResource.javaas having no referencing unit test for that reason.Backend integration tests
openmetadata-integration-tests/.../TopicResourceIT.java:schemaFieldSearch_matchesNestedFieldsAndPages(nested match, description match, page bounds, no children in search rows),schemaFieldSearch_sortsByNameBeforePaging,schemaFieldPage_ordinalPositionSortKeepsSchemaOrder,schemaFieldSearch_unknownTopic_404(asserts status 404).schemaFieldSearch_matchesNestedFieldsAndPages: nested match, description match, page bounds, no children in search rows.schemaFieldPage_ordinalPositionSortKeepsSchemaOrderschemaFieldSearch_unknownTopic_404: asserts status 404.Ran locally at
e7c18d0(merged with latestmain; 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 newschemaFieldSearch_sortsByNameBeforePaging.Not run locally (pending, merge queue): the rest of the impacted plan from
make java_affected(TableResourceIT, ContainerResourceIT, SearchIndexResourceIT, MessagingServiceResourceIT, TopicServiceHydrationIT, …).Ingestion integration tests
Playwright (UI) tests
e2e/Features/Pagination.spec.ts› Topic schema fields page pagination, using the sharedtestPaginationNavigationandtestCompletePaginationWithSearchhelpers with 60 fields.e2e/Features/Topic.spec.ts› "pages, edits and searches schema fields through the server".Ran locally, against a backend built from this branch plus the branch UI on a Vite dev server;
--project=Basic --no-deps -g "Topic schema fields":These two Pagination tests ran before the review fixes (
9e149e7…3d48a47) and were not re-run. Those commits flatten nested search matches, move field saves back to the topic PATCH, and add server-side Name sorting; the two tests use flat fields and no saves or sorting. Not run locally: the newTopic.spec.tstest and the existing topic Entity specs (merge queue). The recording below covers saving and sorting at the current head.Visual regression baselines
visualData.tsnow serves topic/columns. Topic visual scenes may need a baseline refresh from the merge-queue/CI visual lane.Manual testing performed
mvn -DonlyBackend package -pl openmetadata-dist -am) and ran it on :8595 against an isolated MySQL database (medan_v2_db) and ES alias (medanv2) in the local Docker MySQL/ES.pr_demo_kafkaand topicpr_demo_orders_eventswith 45 fields (one nestedcustomerrecord) via the API.UI screen recording:
Recorded at
e7c18d0(the PR head, merged with latestmain).openmetadata-diston :8595 (/api/v1/system/version2.0.0-SNAPSHOT,/healthcheckon :8596 → 200). MySQL and Elasticsearch run in the local Docker containersopenmetadata_mysqlandopenmetadata_elasticsearch. The branch UI ran via Vite on :3001.pr_demo_kafka.pr_demo_orders_events, created via the API with 45 fields.Steps shown, each asserted in the script:
order_field_01….order_field_16…from the/columns?offset=15response.order_field_17description on page 2 →PATCH /api/v1/topics/{id}returns 200 and the reloaded page shows it./columns?sortBy=name&sortOrder=ascreturns page 1 of 3 sorted across the whole schema (customerfirst).customer→/columns/searchreturnscustomer,customer_idandemail(nested matches, each once), andcolumnSearch=customeris in the URL.topic-schema-pagination-v2.webm
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.58274deagainstREVIEW.mdwith an independent reviewer. Fixed: nested search duplicates (9e149e7); stale responses, 404 assertion, weak Jest assertions (031b5c9). Bot review threads fixed in3d48a47: search-mode save duplication, stale side panel and pending-approval display (saves back on the topic PATCH), within-page sorting (server-side sort). Answered: page-only tag filter (open question above);sortBy=ordinalPositionfor schema order (endpoint default left unchanged for API compatibility).🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no new blocking issue was found.Summary
This PR pages topic schema fields from the server and adds search across nested fields.
Reviews (4) · Last reviewed commit: "Reload topic schema fields on every save..." · Reviewed by Greptile