Skip to content

W1-1 (G-13): render the two service-% data-insight cards with summary and absolute-value charts - #162

Merged
BMJLearnToHelloWorld merged 1 commit into
mainfrom
m2-wave1-g13
Nov 7, 2026
Merged

BMJLearnToHelloWorld merged 1 commit into
mainfrom
m2-wave1-g13

Conversation

@BMJLearnToHelloWorld

Copy link
Copy Markdown
Owner

W1-1 (G-13): render the two service-% data-insight cards

Wave 1 batch 1 of the next milestone (scope locked 2026-11-07; deep analysis RULING-data-insights.md; decisions DECISIONS-RESOLVED.md D-D-1/D-D-2/D-D-3/D-D-5 + D-D-4).

What changes

/insights/data-assets had two permanent empty states ("% of services with description / owner"). This batch renders them as real per-service line charts (x = day, y = %), following official scheme A (D-D-1):

  • SYSTEM_CHART_NAMES gains percentage_of_service_with_description / percentage_of_service_with_owner.
  • Headline % taken from the summary cards (total_data_assets_summary_card, data_assets_with_description_summary_card, data_assets_with_owner_summary_card, total_data_assets_with_tier_summary_card) + 2 absolute-value KPI charts (number_of_data_asset_with_description_kpi, number_of_data_asset_with_owner_kpi); headline % uses the row with max day, change = official formula in percentage points (first/last day aligned on the same day).
  • Corrective change: the summary area's 3 cards are corrected from per-entity-type approximations to global values (release notes must say so).
  • Team/tier filters added (D-D-3, filter sent with every chart request, per official DataInsightPureUtils.ts:226-269); default date preset last30 -> last7 (D-D-2).
  • Permission gates ViewAll + dataInsightChart (resource name verified against the product permission catalogue and the server's accepted names before wiring; no-permission shows a placeholder and sends no chart requests).
  • KPI target slot (uses listKpis' existing dataInsightChart field); right rail per-service latest % list (descending, searchable, legend filter, pluralize=false).
  • Fixes the stale DataAssetsView.vue header comment claiming "no preview API" (the GET /name/{fqn}/data endpoint exists).
  • Fetch failures on the new cards surface an explicit alert; the old listSystemChartData 4xx-silent-{} semantic is not extended to them.

Not in scope

  • "Add KPI" entry (D-D-5, residual R-5); 4th tier-% summary card; app-analytics / kpis tabs; server / ES / new endpoints / DataInsights App changes.

Decisions

  • docs/decisions/2026-11-07-data-insights-service-cards.md (cited in code as ADR:).

Reviews

  • Idea review wave1/REVIEW-W1-1-G13.md: APPROVE with 3 conditions (permission resource name verified before wiring; headline-%取数口径 + unit tests; explicit failure alerting) — all addressed in the implementation.
  • D-D-4 (security, no change): non-admin + search access control on + filtered request -> snapshot charts return empty; must not be relaxed or bypassed. Live check with a non-admin account is still owed.

Gates (branch, local)

  • npm ci clean; vue-tsc -p tsconfig.app.json 219 vs baseline 233, zero errors in batch files; npm run build pass; full npm test 320 files / 1494 tests all pass. Logs: gate-w1-1-g13-logs/.

Live verification (still owed — merge gate)

  • Pre-check 0-5: the 6 chart names return from listChartData + DataInsights App ran recently. Needs an admin login; merge only after the live pre-check passes. If chart definitions are missing or the App is not running, fix that first, do not merge.

Files

11 files, +1543/-251 (ServiceInsightCard.vue + test new; DataAssetsView.vue; api/dataInsights.ts; catalog/insightsTabs.ts; i18n en-US/zh-CN; ADR).

@BMJLearnToHelloWorld
BMJLearnToHelloWorld merged commit 5c5b155 into main Nov 7, 2026
55 checks passed
@BMJLearnToHelloWorld
BMJLearnToHelloWorld deleted the m2-wave1-g13 branch November 12, 2026 03:45
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.

1 participant