Backport database, schema, and container lazy-loading updates to 1.13#30132
Conversation
…d utility pattern (#29067) * feat(ui): update Database, Schema & Container components for lazy-load utility pattern Updates Database, Schema, Container and DriveService components to import from extracted pure utility modules. Updates TablePureUtils, ContainerDetailUtils, ColumnUpdateUtils imports. Updates related pages for consistent utility usage. Ref: open-metadata/openmetadata-collate#4230 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * address gitar-bot comments * fix build --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
❌ 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 |
Code Review ✅ ApprovedBackports lazy-loading utility patterns for Database, Schema, and Container components to the 1.13 branch. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
| getEntityVersionByField, | ||
| getEntityVersionTags, | ||
| } from '../../../../utils/EntityVersionUtils'; | ||
| } from '../../../../utils/EntityVersionUtilsPure'; |
There was a problem hiding this comment.
Version Helper Mocks No Longer Apply
This component now loads the helpers from EntityVersionUtilsPure, while WorksheetVersion.test.tsx still mocks EntityVersionUtils. The test therefore executes the real helpers instead of its stubs, so fixture changes can produce unrelated failures or let the test pass without exercising the intended mocked states. The version tests for the other import migrations in this PR need the same mock-path update.
Context Used: CLAUDE.md (source)
Summary
Stack
Testing
Greptile Summary
This PR moves database, schema, container, and version code onto lightweight utility modules. The main changes are:
Confidence Score: 5/5
This looks safe to merge after a small test-mock cleanup.
Version tests whose components now import EntityVersionUtilsPure.
Important Files Changed
Reviews (1): Last reviewed commit: "feat(ui): update Database, Schema & Cont..." | Re-trigger Greptile
Context used: