Repository navigation
feat(ui): migrate facade imports to direct sources + delete EntityUtils.tsx - #28919
Conversation
… remove facades (PR #19/#20/#23) Update ~273 consumer files to import symbols directly from their canonical source modules. Remove all re-export boilerplate from backward-compat facade files now that consumers are fully migrated. ## Consumer migrations - EntityUtils → EntityNameUtils, EntityBreadcrumbPureUtils, EntityLinkUtils, EntityBreadcrumbUtils, EntityColumnUtils, EntityDataBreadcrumbUtils, EntityPureUtils, EntityPermissionUtils, EntityReferenceUtils, EntitySearchUtils, EntitySortUtils, EntityTagUtils, EntityVoteUtils - EntityPureUtils → EntityPermissionUtils, EntityReferenceUtils, EntitySearchUtils, EntitySortUtils, EntityTagUtils, EntityVoteUtils - TableUtils → TablePureUtils, TableDropdownOptions, TableTabsUtils - ServiceInsightsTabUtils → ServiceInsightsTabPureUtils, ServiceInsightsWidgets - CustomizePageUtils → CustomizePagePureUtils - Database.util → DatabaseDropdownOptions, DatabaseTabsUtils - DatabaseSchemaDetailsUtils → DatabaseSchemaDropdownOptions, DatabaseSchemaTabsUtils - DatabaseServiceUtils → DatabaseServicePureUtils ## Facade cleanup - Delete EntityUtils.tsx (was entirely re-exports; no native code remained) - Remove re-export blocks from EntityPureUtils.ts, TableUtils.tsx, ServiceInsightsTabUtils.tsx, CustomizePageUtils.ts, Database.util.tsx, DatabaseSchemaDetailsUtils.tsx, DatabaseServiceUtils.tsx Native functions in each file (getEntityFeedLink, updateNodeType, ENTITY_LINK_SEPARATOR, getEntityIcon, getFormattedTotalAssetsDataFromSocketData, etc.) remain unchanged. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
❌ 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
🟡 Playwright Results — all passed (12 flaky)✅ 4272 passed · ❌ 0 failed · 🟡 12 flaky · ⏭️ 88 skipped
🟡 12 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
|
Code Review ✅ ApprovedMigrates 273 consumer files to direct source imports and removes redundant facade utility files to eliminate the import indirection layer. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Resolved import conflicts from consumer-migration PR (#28919) — kept direct-source imports and lazy-load patterns from this branch. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Conflict resolutions: - SearchResource.java: kept both imports (CSVExportResponse for the search export job pipeline + main's ReindexingUtil). - ExploreV1.component.tsx: kept the CSV-jobs tray imports (CsvJobsTray, CSV_JOBS_REFRESH_EVENT, showSuccessToast) alongside main's withSuspenseFallback. - CSVUtilsClassBase.tsx: kept the ExtensionData* interface imports and the rich-grid react hooks, adopted main's lazy-loaded ModalWithMarkdownEditor (dropped the redundant duplicate the auto-merge left near the class). - 18 locale files: unioned both sides' new keys, then `yarn i18n` resynced all locales (incl. main's new sv-se.json) against en-us.json. Post-merge fixes for cleanly-merged-but-broken imports (main deleted EntityUtils.tsx in #28919 and split CommonUtils.tsx in #28389): - CSVUtilsClassBase.tsx: getEntityName now from EntityNameUtils. - MetricListPage.tsx / .test.tsx: getEntityBulkEditPath/getEntityImportPath now from EntityPureUtils. Verified: openmetadata-service compiles (after spec regen), spotless clean, 17 changed UI test suites pass (309 tests).



Summary
Completes the import migration for the EntityUtils code-split initiative. All consumer files now import directly from the canonical source module instead of going through backward-compat re-export facades. The facades are then cleaned up.
Consumer migrations (~273 files)
EntityUtilsEntityNameUtils,EntityPureUtils,EntityPermissionUtils,EntityReferenceUtils,EntitySearchUtils,EntitySortUtils,EntityTagUtils,EntityVoteUtils,EntityBreadcrumbUtils,EntityDataBreadcrumbUtils,EntityLinkUtils,EntityColumnUtilsEntityPureUtilsre-exportsTableUtilsre-exportsTablePureUtils,TableDropdownOptions,TableTabsUtilsServiceInsightsTabUtilsre-exportsServiceInsightsTabPureUtils,ServiceInsightsWidgetsCustomizePageUtilsre-exportCustomizePagePureUtilsDatabase/Database.utilre-exportsDatabaseDropdownOptions,DatabaseTabsUtilsDatabaseSchemaDetailsUtilsre-exportsDatabaseSchemaDropdownOptions,DatabaseSchemaTabsUtilsDatabaseServiceUtilsre-exportDatabaseServicePureUtilsFacade cleanup
utils/EntityUtils.tsx— was entirely re-exports with no native codeEntityPureUtils.ts,TableUtils.tsx,ServiceInsightsTabUtils.tsx,CustomizePageUtils.ts,Database.util.tsx,DatabaseSchemaDetailsUtils.tsx,DatabaseServiceUtils.tsx)Native functions in each facade file remain untouched.
Why this matters
These re-export facades were the backward-compat shim added in PRs #1–13 (the split PRs). Now that all consumers in both OSS and Collate repos point to the final source, the facades have no reason to exist. Removing them eliminates the indirection layer and makes the import graph clean and direct.
Test plan
yarn lintpassesyarn testpasses (no test files were modified)npx tsc --noEmitpasses🤖 Generated with Claude Code