Skip to content

Backport #29065 Domain and Glossary lazy-loading to 1.13 - #31043

Open
shah-harshit wants to merge 1 commit into
ui/direct-1.13-seq24-29062-activityfeed-announcement-lazyfrom
ui/direct-1.13-seq25-29065-domain-glossary-lazy
Open

Backport #29065 Domain and Glossary lazy-loading to 1.13#31043
shah-harshit wants to merge 1 commit into
ui/direct-1.13-seq24-29062-activityfeed-announcement-lazyfrom
ui/direct-1.13-seq25-29065-domain-glossary-lazy

Conversation

@shah-harshit

Copy link
Copy Markdown
Contributor

Summary

Tracking

Testing

  • git diff --check HEAD~1..HEAD

* feat(ui): update Domain & Glossary components for lazy-load utility pattern (#29065)

* feat(ui): update Domain & Glossary components for lazy-load utility pattern

Updates Domain and Glossary components to import from extracted pure utility modules. Updates DomainUtils, GlossaryUtils, ClassificationUtils, TagsUtils imports. Updates Tag components and pages for consistent utility usage.

Ref: open-metadata/openmetadata-collate#4230

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix build and unit tests

* fix checkstyle

* Fix conflicts

* fix test, build, checkstyle

* fix checkstyle

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(ui): update task tab feed utils mock

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit 5b92d40)
@shah-harshit
shah-harshit requested a review from a team as a code owner August 5, 2026 13:30
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Aug 5, 2026
@shah-harshit shah-harshit self-assigned this Aug 5, 2026
@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Too many files changed for review (167 files, 100 file limit).

Bypass the limit by tagging @greptile-apps to review.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

Comment on lines +78 to +92
export const DOMAIN_FORM_DEFAULTS: DomainFormValues = {
name: '',
displayName: '',
description: '',
color: '',
iconURL: '',
coverImage: null,
tags: [],
glossaryTerms: [],
owners: [],
experts: [],
reviewers: [],
domainType: null,
domains: undefined,
dataProductType: null,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Quality: New exported transformDomainFormData helpers are unused dead code

DOMAIN_FORM_DEFAULTS, transformDomainFormData, normalizeExtensionForApi, unwrapSelectItemValue, and isFormSelectItem (~130 new lines) are exported but have no callers anywhere in the codebase, including tests — the component's own handleFormSubmit builds the payload inline instead. This duplicated, untested transform can silently drift from the real submit path (e.g. it drops reviewers for non-data-product domains, unlike the inline handler). If they aren't consumed by a later stacked PR, remove them; otherwise route handleFormSubmit through transformDomainFormData so a single code path is exercised and tested.

Was this helpful? React with 👍 / 👎

@gitar-bot

gitar-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 0 resolved / 1 findings

Backports Domain and Glossary lazy-loading updates to the 1.13 branch. Consider removing the unused exported transformDomainFormData helpers to clean up dead code.

💡 Quality: New exported transformDomainFormData helpers are unused dead code

📄 openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainForm.component.tsx:78-92

DOMAIN_FORM_DEFAULTS, transformDomainFormData, normalizeExtensionForApi, unwrapSelectItemValue, and isFormSelectItem (~130 new lines) are exported but have no callers anywhere in the codebase, including tests — the component's own handleFormSubmit builds the payload inline instead. This duplicated, untested transform can silently drift from the real submit path (e.g. it drops reviewers for non-data-product domains, unlike the inline handler). If they aren't consumed by a later stacked PR, remove them; otherwise route handleFormSubmit through transformDomainFormData so a single code path is exercised and tested.

🤖 Prompt for agents
Code Review: Backports Domain and Glossary lazy-loading updates to the 1.13 branch. Consider removing the unused exported transformDomainFormData helpers to clean up dead code.

1. 💡 Quality: New exported transformDomainFormData helpers are unused dead code
   Files: openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainForm.component.tsx:78-92

   `DOMAIN_FORM_DEFAULTS`, `transformDomainFormData`, `normalizeExtensionForApi`, `unwrapSelectItemValue`, and `isFormSelectItem` (~130 new lines) are exported but have no callers anywhere in the codebase, including tests — the component's own `handleFormSubmit` builds the payload inline instead. This duplicated, untested transform can silently drift from the real submit path (e.g. it drops `reviewers` for non-data-product domains, unlike the inline handler). If they aren't consumed by a later stacked PR, remove them; otherwise route `handleFormSubmit` through `transformDomainFormData` so a single code path is exercised and tested.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant