Repository navigation
Conversation
Contributor
ShaileshParmar11
previously approved these changes
Aug 11, 2025
chirag-madlani
previously approved these changes
Aug 11, 2025
karanh37
dismissed stale reviews from chirag-madlani and ShaileshParmar11
via
August 11, 2025 08:08
d07be32
chirag-madlani
approved these changes
Aug 11, 2025
|
Contributor
|
Changes have been cherry-picked to the 1.9.0 branch. |
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 11, 2025
* add pagination on subdomains table * add tests * fix domain tests * fix flaky test * moved config outsude (cherry picked from commit a239cfb)
Copilot AI
pushed a commit
that referenced
this pull request
Aug 15, 2025
* add pagination on subdomains table * add tests * fix domain tests * fix flaky test * moved config outsude
5 tasks done
This branch had an error being deployed
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.



Describe your changes:
Fixes #22792
This pull request refactors how subdomains are loaded and displayed in the Domain Details page, moving from eager loading of all subdomain data to an efficient paginated approach. Instead of fetching all subdomains and passing them around, the code now only fetches the subdomain count for summary purposes and loads subdomain data page-by-page in the table. This improves performance and scalability, especially for domains with many subdomains.
Subdomain Data Loading and Pagination
DomainDetailsPage.component.tsxto fetch only the count of subdomains for summary display, removing the previous eager loading of all subdomain data. (openmetadata-ui/src/main/resources/ui/src/components/Domain/DomainDetailsPage/DomainDetailsPage.component.tsx) [1] [2] [3] [4] [5] [6] [7]SubDomainsTablecomponent, passing only the domain FQN and count, not the full subdomain list. (openmetadata-ui/src/utils/DomainUtils.tsx) [1] [2] [3]SubDomainsTable Component Refactor
SubDomainsTableto fetch subdomain data page-by-page using the domain FQN, implement internal pagination logic, and handle loading/error states. (openmetadata-ui/src/main/resources/ui/src/components/Domain/SubDomainsTable/SubDomainsTable.component.tsx) [1] [2]SubDomainsTablePropsinterface to requiredomainFqninstead of a list of subdomains and removed theisLoadingprop. (openmetadata-ui/src/main/resources/ui/src/components/Domain/SubDomainsTable/SubDomainsTable.interface.ts)Supporting Type and API Changes
subDomainsCount(number) instead of an array of subdomains, and removed theisSubDomainsLoadingflag. (openmetadata-ui/src/utils/Domain/DomainClassBase.ts,openmetadata-ui/src/main/resources/ui/src/components/Domain/DomainDetailsPage/DomainDetailsPage.component.tsx) [1] [2] [3]Test Improvements
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SubDomainPagination.spec.ts)fullyQualifiedNamefor parent domains. (openmetadata-ui/src/main/resources/ui/playwright/support/domain/SubDomain.ts)I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>