Repository navigation
Data Estate widget: exclude columns from connector counts, header sums them - #37910
Conversation
…ms the split Columns share the dataAsset alias and carry their table's serviceType, so the per-connector counts were sized by column count (Postgres 82k) under a header that read the Data Insights total (7.8k). Exclude tableColumn from the serviceType aggregation and make the header the sum of the per-connector counts, labelled "Data Assets by Connector".
❌ 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 ✅ Approved 🟡 Medium riskFiltering columns from connector aggregation and deriving the header from connector sums could misstate displayed estate totals if indexed data differs. Data Estate connector counts now exclude table columns, and the header shows the sum of connector counts (relabelled "Data Assets by Connector") so the split and total agree. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
* test(playwright): refresh stale 2.1 visual baselines and fix shell menu scenes Refresh 32 baselines from the 2.1 nightly (run 44266671648) actuals. Every diff traces to an intended change that arrived with the main merge: Tableau connected-app auth option (#37084), 400px entity summary panel (#37888), unified CopyButton (#37953), new Insights/AdvancedSearch icons (#37973), Data Estate connector counts (#37910) and the users Name/Email columns (#37127, #37998). shell-profile-menu and shell-mode-menu waited for my-data-page, which #38077 removed from /my-data in AI mode; wait for home-landing-page. * test(playwright): complete 2.1 shell and expanded Tableau baselines
Describe your changes:
No linked issue (reported in Slack by Mayur Singal).
The Your Data Estate landing-page card printed a header total that its own per-connector split did not add up to. On one instance it read Total Assets 7,836 above Postgres 82,048.
serviceTypeaggregation over thedataAssetalias. That alias includescolumn_search_index, and every column carries its table'sserviceType, so each connector was sized by its column count. The header was the Data Insightstotal_data_assetsfigure, which never counts columns and is the same number the Total Data Assets card already shows.entityType: tableColumnfrom the connector aggregation, using the samemust_notfilter the data-product port picker already uses.Expected difference from the Total Data Assets card: this card counts connector-ingested files, spreadsheets, worksheets, directories and API collections, which Data Insights does not. That card counts data products and metrics, which have no connector. On a local stack: 64 here − 16 + 4 = 52 there.
Type of change:
High-level design:
N/A — small fix: one hook (
useDataEstate.ts), one label, its locale key, and tests. The other files are the 20 locale JSONs.Tests:
Use cases covered
must_not entityType: tableColumn. On a live backend, MySQL went from 41 to 17.Unit tests
src/hooks/useDataEstate.test.tsx: newleaves columns out of the per-connector counts. Updatedtotals the connector counts, and measures movement from Data Insights,totals the connectors and reports no movement when Data Insights has no rows, andkeeps the previous window on screen while the next one loads.npx jest src/hooks/useDataEstate.test.tsx: 16 passed.npx jest src/components/MyData/Widgets/DataEstateWidget src/components/MyData/Widgets/Common/TopicWidget: 18 suites, 117 passed.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/LandingPageWidgets/LandingPageDataEstate.spec.ts. The header is now expected to equal the sum of the connector buckets in every case (thehasInsightsbranches are removed), and to hold its value across the 90-day switch.PLAYWRIGHT_TEST_BASE_URL=http://localhost:3000 npx playwright test LandingPageDataEstate --project=Basic --workers=1against this branch's Vite dev server and a local 2.0.0 backend with Data Insights data: 6 passed (2 setup + 4 spec).yarn lint:playwright: 0 errors.RTL.spec.ts(only checks thatdata-estate-totalis visible; unaffected).Playwright run (re-run on
3bfca26ea76, list reporter): 6 passed (1.2m)Visual regression baselines
e367bd33985:staticPages.spec.ts-snapshots/landing-page.pngstaticPages.spec.ts-snapshots/landing-page-sidebar-expanded.pnghomeWidgets.spec.ts-snapshots/home-widget-dataEstate(-dark).pngpassed in that run (the change is under the 1% pixel threshold), so they were left as is.mainrun 44004103039:customize-home,classic-customize-home,classic-settings-notifications-announcements,custom-property-config-no-search-results,explore-search-error,settings-source-adoption-error,settings-source-fully-managed,tab-table-queries.explore: the entity summary panel on the right shifts about 40px. This PR doesn't touch that panel, and it passed in themainrun above, so it most likely comes frommaincommits merged into this branch after that run (not verified).Manual testing performed
vite --port 3000) against a local backend on :8585 and logged in as admin.POST /api/v1/search/aggregateonserviceType: MySQL is 41 with columns and 17 with the new filter. Other connectors are unchanged.UI screen recording:
Not applicable — bug fix to an existing widget's counts and label, not a new feature.
Checklist:
I have read the CONTRIBUTING document.
My PR title is
Fixes <issue-number>: <short explanation>(no issue, by request)My PR is linked to a GitHub issue via
Fixes #<issue-number>above. (no issue, by request)I have commented on my code, particularly in hard-to-understand areas.
For JSON Schema changes: not applicable.
For a UI feature or feature task: not applicable (bug fix).
I have added tests (unit / integration / Playwright as applicable) and listed them above.
Self-review: I reviewed the final diff against
REVIEW.mdand fixed every 🔴 finding, or answered it on the line below.3bfca26ea76. Fixed: the stale Playwright spec, and a comment that no longer matched the code.Decision check: no durable decision (UI label and count source only).
I have added a test that covers the exact scenario we are fixing.
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
The Data Estate card now excludes columns from connector counts and uses their sum for its header and summary.
No actionable issues were found. Tests and browser checks were not run during this review.
Reviews (5) · Last reviewed commit: "Merge branch 'main' into shrabantipaul-c..." · Reviewed by Greptile