Repository navigation
Fixes #38368: paginate glossary approval-task fetch so all pending proposals stay decidable - #38404
Merged
harsh-vador merged 2 commits intoNov 23, 2026
Conversation
…oposals stay decidable
4 tasks done
…ab and proposals hook
ShaileshParmar11
approved these changes
Nov 23, 2026
harsh-vador
deleted the
detail/bug-fix/fixes-38368-paginate-glossary-approval-task-fetch-e4fb65
branch
November 23, 2026 08:37
harsh-vador
added a commit
that referenced
this pull request
Nov 23, 2026
…ing proposals stay decidable (backport 2.1 #38404) (#38425) * Fixes #38368: paginate glossary approval-task fetch so all pending proposals stay decidable (cherry picked from commit b38b604) * refactor(ui): share the paged approval-task fetch between the Terms tab and proposals hook (cherry picked from commit d7e70d6) --------- Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detail bug report: View on Detail
Describe your changes:
Fixes #38368
I paginated the glossary approval-task fetch in the Terms tab and the proposal hook because a single
listTaskscall was hard-capped at 50 results and discardedpaging.after, so glossaries with more than 50 open approval tasks silently dropped the oldest pending proposals — hiding their Approve/Reject buttons in the Terms table and showing the term's last editor as the "Proposed by" author instead of the actual proposer.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
RequestApprovaltasks loads every task into the Terms-tab task map, so the oldest pending InReview terms still show Approve/Reject for assigned deciders.listTaskscall, no extra rendering churn).useGlossaryProposal→fetchProposal) pages through approval tasks the same way, so a term whose task is on a later page still resolves itsapprovalTask.Unit tests
openmetadata-ui/.../GlossaryTermTab/GlossaryTermTab.test.tsx— 3 tests: cursor is followed across pages; loop terminates when the cursor is exhausted; an oldest page-2 proposal renders Approve/Reject buttons end-to-end.openmetadata-ui/.../hooks/governance/glossary/useGlossaryProposals.test.tsx— 1 test: the hook pages through approval tasks so a page-2 task becomesproposal.approvalTask.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
2.0.0-SNAPSHOTserver but could not boot the backend in this environment: the pinned dev Docker images (docker.getcollate.io/openmetadata/…:2.0.0-SNAPSHOT) are not published on the registry, and booting the server from the pre-built local jar against locally-started MySQL 8 + Elasticsearch 8.11 (with migrations run viaOpenMetadataOperations … migrate) failed duringregisterResourceswithUnhandledServerException: App Scheduler is not Initialized—AppScheduler.initializeis only called from the separate migrate JVM / lazily fromAppResource, not on theserverboot path. The full boot was reproduced with both the noop and AirflowREST pipeline clients, with the same stack trace; the rendered-UI end-to-end therefore remains unverified here.UI screen recording:
Not applicable — standalone bug fix in existing glossary Terms-tab code (no new feature or feature task).
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.docs/decisions/(see itsREADME.md). — N/A, no cross-repo decisions.Automatic Fixes PRs can be configured here.


Confidence Score: 5/5
The PR appears safe to merge; no blocking issue was found.Summary
The PR loads every page of open glossary approval tasks and shares that code through
listOpenApprovalTasks.Reviews (2) · Last reviewed commit: "refactor(ui): share the paged approval-t..." · Reviewed by Greptile