Backport #29065 Domain and Glossary lazy-loading to 1.13 - #31043
Conversation
* 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)
|
Too many files changed for review (167 files, 100 file limit). Bypass the limit by tagging |
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
| export const DOMAIN_FORM_DEFAULTS: DomainFormValues = { | ||
| name: '', | ||
| displayName: '', | ||
| description: '', | ||
| color: '', | ||
| iconURL: '', | ||
| coverImage: null, | ||
| tags: [], | ||
| glossaryTerms: [], | ||
| owners: [], | ||
| experts: [], | ||
| reviewers: [], | ||
| domainType: null, | ||
| domains: undefined, | ||
| dataProductType: null, |
There was a problem hiding this comment.
💡 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 👍 / 👎
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsBackports 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
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |
Summary
Tracking
Testing