Skip to content

Data Estate widget: exclude columns from connector counts, header sums them - #37910

Merged
shrabantipaul-collate merged 4 commits into
mainfrom
shrabantipaul-collate/data-widget-assets-fix
Nov 17, 2026
Merged

shrabantipaul-collate merged 4 commits into
mainfrom
shrabantipaul-collate/data-widget-assets-fix

Conversation

@shrabantipaul-collate

@shrabantipaul-collate shrabantipaul-collate commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Why: the per-connector counts come from a serviceType aggregation over the dataAsset alias. That alias includes column_search_index, and every column carries its table's serviceType, so each connector was sized by its column count. The header was the Data Insights total_data_assets figure, which never counts columns and is the same number the Total Data Assets card already shows.
  • Fix:
    • Exclude entityType: tableColumn from the connector aggregation, using the same must_not filter the data-product port picker already uses.
    • Make the header the sum of every per-connector count (including the folded "Other" segment), relabelled "Data Assets by Connector". The card's summary line ("N assets across M connectors") uses the same sum.
    • The "+N in the last 7 days" badge is unchanged and still reads the Data Insights delta (out of scope by decision).

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:

  • Bug fix

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

  • Per-connector counts exclude columns: the aggregate request carries must_not entityType: tableColumn. On a live backend, MySQL went from 41 to 17.
  • The header equals the sum of all connector counts, with or without Data Insights rows.
  • The header stays put across a range switch, because it is a live count. The badge delta still comes from Data Insights.

Unit tests

  • src/hooks/useDataEstate.test.tsx: new leaves columns out of the per-connector counts. Updated totals the connector counts, and measures movement from Data Insights, totals the connectors and reports no movement when Data Insights has no rows, and keeps 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

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated playwright/e2e/Features/LandingPageWidgets/LandingPageDataEstate.spec.ts. The header is now expected to equal the sum of the connector buckets in every case (the hasInsights branches 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=1 against 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.
  • Not run locally: RTL.spec.ts (only checks that data-estate-total is visible; unaffected).

Playwright run (re-run on 3bfca26ea76, list reporter): 6 passed (1.2m)

LandingPageDataEstate.spec.ts: 6 passed

Visual regression baselines

  • Refreshed from the first attempt of run 44020216094 (Linux Playwright image), commit e367bd33985:
    • staticPages.spec.ts-snapshots/landing-page.png
    • staticPages.spec.ts-snapshots/landing-page-sidebar-expanded.png
    • Each diff is confined to the Data Estate card (label, header number, summary line). The CI images match the baselines' 1440×900 size.
  • homeWidgets.spec.ts-snapshots/home-widget-dataEstate(-dark).png passed in that run (the change is under the 1% pixel threshold), so they were left as is.
  • Failing in that run but not caused by this PR:
    • Also failing in the scheduled main run 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 the main run above, so it most likely comes from main commits merged into this branch after that run (not verified).

Manual testing performed

  1. Ran this branch's UI (vite --port 3000) against a local backend on :8585 and logged in as admin.
  2. Home → Your Data Estate: the header reads Data Assets by Connector 64, and the legend sums to 64 (MySQL 17, Superset 14, Googledrive 12, Rest 8, S3 4, Other 9).
  3. POST /api/v1/search/aggregate on serviceType: MySQL is 41 with columns and 17 with the new filter. Other connectors are unchanged.
Data Estate widget: Data Assets by Connector

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.md and fixed every 🔴 finding, or answered it on the line below.

    • Reviewed 3bfca26ea76. Fixed: the stale Playwright spec, and a comment that no longer matched the code.
    • Answered, not fixed: the badge still shows the Data Insights delta while the header is the connector sum. Keeping the badge is a deliberate scope decision for this PR. Data Insights has no per-connector history to compute a matching delta from.
  • 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

RetriggerView in GreptileConfidence 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.

  • The Data Estate header adds up to its connector breakdown.

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

Shrabanti Paul added 3 commits November 16, 2026 20:46
…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".
@github-actions

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.

@gitar-bot

gitar-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Filtering 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.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

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

Compact
gitar display:verbose         

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

@shrabantipaul-collate
shrabantipaul-collate merged commit 6db6a7b into main Nov 17, 2026
68 of 81 checks passed
@shrabantipaul-collate
shrabantipaul-collate deleted the shrabantipaul-collate/data-widget-assets-fix branch November 17, 2026 05:44
shah-harshit added a commit that referenced this pull request Nov 18, 2026
* 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

This branch was previously deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants