You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "wu-sheng (via GitHub)" <gi...@apache.org> on 2026/06/21 01:01:03 UTC
[PR] fix: RC0 Tier-1 correctness + Tier-2 hygiene [skywalking-horizon-ui]
wu-sheng opened a new pull request, #61:
URL: https://github.com/apache/skywalking-horizon-ui/pull/61
## Why
Second batch from the RC0 review: the Tier-1 correctness fixes and Tier-2 release hygiene. (Tier-3 GraphQL-efficiency and Tier-4 layering are still to come.)
## What
**Tier-1 — correctness**
- **API-dependency tab ignored the topbar time picker.** It was hardwired to the last hour while its sibling maps (service map, instance map, deployment) honor the range. Wired the picker through end-to-end — BFF route (parse `step`/`startMs`/`endMs`, build the window, drop the hardcoded `step: MINUTE` in both fragment builders), client, composable, and the in-view node-expand call — and fixed the stale "last 15 minutes" empty-state copy.
- **A single failed metric chunk blanked the whole dashboard.** The widget MQE fan-out wrapped one `Promise.all` in a single try, so one transient 5xx / timeout / complexity-limit rejection stamped *every* widget as failed. Now each chunk degrades on its own — only that chunk's widgets are marked, the rest render, and `reachable` stays `true`.
- **Stale server-timezone offset after an OAP repoint.** The tz-offset cache was keyed on nothing, so a config reload that switched to a different-timezone OAP kept serving the old offset for up to the 60s TTL. It's now keyed on the OAP query URL and re-probes immediately on change (the dead `invalidateServerOffsetCache` is gone).
- **Trace-v2 (BanyanDB) root-span selection.** `find(parentSpanId === -1)` could match a downstream segment's entry span; added `&& s.refs.length === 0` (matching booster-ui) plus an empty-endpoint-name guard so list rows reflect the true entry span.
- **`/api/debug/status` double-gate.** It required both `live-debug:read` (route policy) and an in-handler `cluster:read`; dropped the redundant in-handler check so `live-debug:read` alone suffices.
**Tier-2 — hygiene**
- Removed the `?mockTop=N` synthetic-row injector from the dashboard route (fake data shouldn't ship).
- Removed two leftover `console.log`s from the topology request path.
- Added baseline security response headers (`X-Content-Type-Options: nosniff`, `X-Frame-Options: DENY`, `Referrer-Policy: no-referrer`) via an `onSend` hook (no new dependency).
- Dead code: dropped the unused `invalidateServerOffsetCache` + `defaultSecondWindow`, the UTC-formatting chain behind the no-consumer `timeRange.duration` export (a latent TZ footgun), and the unused `requireVerb` pre-handler.
i18n: one swapped UI string translated across all 8 locales.
## Validation
- `pnpm -r type-check`, `build` (UI + BFF), `license:check` (0 invalid), `pnpm -r lint`, `pnpm -r test:unit` (UI 116 + BFF 116), BFF `i18n:validate` (no findings), UI 8-locale completeness — all green.
- **Live against the public demo OAP** (booted from source): security headers present on responses; `/api/debug/status` → 200; endpoint-dependency accepts `step`/`startMs`/`endMs` and returns a valid graph (200); dashboard happy-path renders 11 widgets with 0 false "batch failed".
- Two paths couldn't be force-tested on the demo and are noted for a backend-specific check: the trace-v2 root-span fix wants a **BanyanDB**-backed OAP, and the tz-cache + per-chunk-degradation fixes are best exercised under an OAP repoint / induced backend error respectively. Code-verified + type-checked.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix: RC0 Tier-1 correctness + Tier-2 hygiene [skywalking-horizon-ui]
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng merged PR #61:
URL: https://github.com/apache/skywalking-horizon-ui/pull/61
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org