Repository navigation
fix(ui): stop glossary Expand All race and isolate intake-form spec (merge-queue flakes) - #35416
Conversation
Fixes three merge-queue flakes: - Glossary.spec.ts "Verify Expand All For Nested Glossary Terms" - Glossary.spec.ts "Create glossary term via row action (+) button" - RestoreEntityInheritedFields.spec.ts "Validate restore with Inherited domain and data products assigned" GlossaryTermTab: fetchExpadedTree now shares fetchAllTerms' request sequence, so a first-level page still in flight can no longer land after Expand All and re-collapse the tree under a "Collapse All" button. performExpandAll waits for the expand-tree request, not any glossaryTerms list call. ProfileGovernance.spec.ts creates a global dataProduct intake form with a required field; it now runs in the single-worker IntakeForm project so parallel DataProduct.create() calls no longer fail with 400.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
| Count | Rule |
|---|---|
| 12 | react-hooks/exhaustive-deps |
| 1 | openmetadata-imports/review-sequential-api-calls |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:654:34 |
react-hooks/exhaustive-deps |
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:658:9 |
react-hooks/exhaustive-deps |
The 'fetchChildTerms' function makes the dependencies of useCallback Hook (at line 1213) change on every render. To fix this, wrap the definition of 'fetchChild |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:742:22 |
openmetadata-imports/review-sequential-api-calls |
Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:757:9 |
react-hooks/exhaustive-deps |
The 'fetchAllTerms' function makes the dependencies of useCallback Hook (at line 1499) change on every render. To fix this, wrap the definition of 'fetchAllTerm |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:830:9 |
react-hooks/exhaustive-deps |
The 'fetchExpadedTree' function makes the dependencies of useCallback Hook (at line 1499) change on every render. To fix this, wrap the definition of 'fetchExpa |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:980:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchAllTerms', 'handlePagingChange', and 'setGlossaryChildTerms'. Either include them or remove the dependency |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:992:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'setGlossaryChildTerms'. Either include it or remove the dependency array. |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1159:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'applyGlossaryTermApprovalOutcome', 'notifyPendingApprovalTasks', and 't'. Either include them or remove the de |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1418:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'currentUser', 'onAddGlossaryTerm', 'onEditGlossaryTerm', and 't'. Either include them or remove the dependency arr |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1609:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'handleEditGlossary', 'handleSearchChange', 'handleStatusSelectionDropdownCancel', 'handleStatusSelectionDropdownSa |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1685:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has unnecessary dependencies: 'glossaryChildTerms', 'glossaryTerms', and 'setGlossaryChildTerms'. Either exclude them or remove the dependenc |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1758:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'movedGlossaryTerm'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1971:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'activeGlossary', 'fetchAllTerms', 'handlePagingChange', and 'previousGlossaryFQN'. Either include them or remove |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Sequencing glossary fetches and isolating intake-form specs changes UI and test execution; stale responses could collapse trees, while parallel creates could fail validation. Fixes the glossary Expand All race by taking a sequence number in ✅ 1 closed✅ Quality: Intake-form spec isolation rule is only in a config comment, not a 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 |
|
🚦 Removed from the merge queue —
|



Describe your changes:
Fixes three merge-queue flakes (retry-pass on #35305, #35352, #35338, #32840):
Pages/Glossary.spec.ts:1526› Verify Expand All For Nested Glossary TermsPages/Glossary.spec.ts:2390› Create glossary term via row action (+) buttonFeatures/RestoreEntityInheritedFields.spec.ts:344› Validate restore with Inherited domain and data products assignedThey come from two root causes. One is a real UI race, the other is cross-spec pollution.
RCA 1: Glossary Expand All race (product bug)
Both Glossary failures show the same end state in the CI failure screenshots: the button reads Collapse All but the tree is collapsed, with the parent row showing "1 term".
Glossary.spec.ts:1526Glossary.spec.ts:2390GlossaryTermTabfetches the first-level terms (?directChildrenOf=…&entityStatus=…) when the tab mounts, and again after a term is created.fetchAllTermsalready discards its own stale responses throughfetchRequestSeqRef, butfetchExpadedTree(Expand All) did not take part in that check. If Expand All was clicked while a first-level fetch was still in flight, the late response replaced the expanded tree viasetGlossaryChildTerms(firstLevel)+setExpandedRowKeys([]). The button stayed on "Collapse All".The test helper hid the race.
performExpandAllwaited on/api/v1/glossaryTerms?*, which also matches that first-level fetch, so it could resolve before the expand request was even sent.Fix
GlossaryTermTab.component.tsx:fetchExpadedTreenow takes a number from the samefetchRequestSeqRefsequence. A first-level page still in flight is discarded, and a superseded expand does not write either.playwright/utils/glossary.ts:performExpandAllwaits only for the expand-tree request (?glossary=/?parent=).RCA 2: intake form leaking across parallel specs
Both RestoreEntityInheritedFields failures are:
pwModalIntakeProp…comes fromProfileGovernance.spec.ts› "Intake Forms CRUD". That spec creates the globaldataProductintake form with a required custom property, and it ran in the parallelchromiumlane. Intake forms are one per entity type, so everyDataProduct.create()running at the same time in another spec got a 400.IntakeForm.spec.tshad already been moved into a dedicated project for this reason;ProfileGovernance.spec.tshad not.Fix (
playwright.config.ts):ProfileGovernance.spec.tsmoves into theIntakeFormproject, which runs in the single-workerglobal-statelane, and intochromium'stestIgnore. The project also getsworkers: 1so the two intake-form specs cannot overlap in non-sharded runs. The file name and test titles are unchanged, so the timing baseline still matches by(file, title).Type of change:
High-level design:
N/A, small change (4 files).
Tests:
Use cases covered
DataProduct.create()in parallel specs no longer collides with the intake-form CRUD spec.Reproduction
UI race, forced end-to-end. A throwaway spec held the tab's first-level fetches for 2 s and clicked Expand All during them:
main): tree re-collapsed under "Collapse All", child not foundIntake form, against the local API. Creating the
dataProductintake form with a required field, thenPOST /dataProducts, returns400 Missing required field(s) per intake form 'dataProduct': pwRcaProp…, the exact CI error. After the form is deleted, the same request returns201.Unit tests
GlossaryTermTab.test.tsx:should not let a first-level page in flight overwrite the expanded tree. It fails onmain(the stale page overwrites the tree) and passes with the fix. The suite passes 50/50.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Run locally against this branch's UI (Vite) on a local server,
--retries=0:--repeat-each=3, 4 workers--repeat-each=5, 4 workersperformExpandAllcaller (GlossaryHierarchy, GlossaryMiscOperations, GlossaryWorkflow, GlossaryApprovalAfterMove, 6 tests inGlossary.spec.ts)IntakeFormproject (IntakeForm + ProfileGovernance)RestoreEntityInheritedFields.spec.tsplaywright test --listshows ProfileGovernance only under[IntakeForm]and never under[chromium].Passing runs of the two flaky Glossary tests:
Glossary.spec.ts:1526: nested Expand AllGlossary.spec.ts:2390: row-action (+) child termPlaywright HTML report: 60 passed, 0 failed, 0 flaky
Same root cause: every Glossary flake in today's merge queue
The 26 completed merge-queue runs on 2026-10-14 (up to 08:51 UTC) had 7 flaky Glossary tests. Every CI failure screenshot shows the same state: the button reads Collapse All, but the tree is collapsed to first-level rows ("1 term" / "3 terms"). This PR's
fetchExpadedTreesequence fix covers all of them.Pages/Glossary.spec.ts:2390Create glossary term via row action (+) buttonPages/Glossary.spec.ts:1526Verify Expand All For Nested Glossary TermsFeatures/Glossary/LargeGlossaryPerformance.spec.ts:176should expand and collapse all termsFeatures/Glossary/GlossaryHierarchy.spec.ts:39/:210Features/Glossary/GlossaryApprovalAfterMove.spec.ts:199Features/Glossary/GlossaryTermRelationsGraph.spec.ts:387(reported as a context-teardown timeout; the real error isGlossaryTerm.visitPageclicking a child that never renders)LargeGlossaryPerformance:176GlossaryHierarchy:39GlossaryHierarchy:210GlossaryTermRelationsGraph:387Why they started today: none of these flaked in the 176 merge-queue runs on 10-12 and 10-13. They begin with the first queue run that includes #35374 (Jdbi 3.37.1 → 3.49.5). In CI traces, the tab's first-level request
glossaryTerms?directChildrenOf&entityStatuswent from 53 ms to 439 ms at p50 (max 1476 ms); other GETs were 1.4–2× slower. The race inGlossaryTermTabalready existed, but before #35374 the first-level response almost always arrived before the Expand All click. Now it often arrives after it.Reproduced locally with CI-like latency. A proxy in front of the server added a random 0–600 ms to every GET plus 100–1500 ms to first-level glossary-term requests. All runs used
--retries=0.mainGlossary:1526 :2390,GlossaryHierarchy:39 :210,GlossaryApprovalAfterMove:199,GlossaryTermRelationsGraph:387)LargeGlossaryPerformance:176, fixed 750 ms first-level delay, ×4On
main, onlyGlossary:1526 and :2390 andLargeGlossaryPerformance:176failed locally. The other four did not fail in this setup; they are covered because their CI failure screenshots match and they go through the same Expand All path.Manual testing performed
expand-collapse-all-button.UI screen recording:
Not applicable. This is a bug fix for a race and test isolation, not a UI feature. Before/after screenshots are above.
Checklist:
🤖 Generated with Claude Code