The GitHub Actions job "CI" on rocketmq-dashboard.git/fix/trace-refresh-cache 
has failed.
Run started by GitHub user unbridled-41 (triggered by unbridled-41).

Head commit for run:
5b3562dd8c9e20d5965fb3e36c6016b2ea87f5d9 / unbridled-41 
<[email protected]>
fix(message): keep a manually refreshed trace when the tab is re-entered

Entering the Trace tab loads the message's trace through a per-message cache, 
but
the manual lookup (查询轨迹) bypasses it and stored its result only in the panel
state:

    const result = await getMessageTrace(value, ...);
    setTraceData(result);

so the next entry into the tab re-read the cached promise and put the superseded
snapshot back on screen - the operator's explicit refresh was undone by a tab
click, and the diagnostics drawn from that payload (delivery status, 
failed-group
count) reverted with it.

Publish the manual msgid result into the same cache entry the tab load uses, 
keyed
exactly as the loader builds it.

Tests (web/): npx vitest run 
src/pages/instance/__tests__/MessagePageAsyncState.test.tsx
-> Tests 23 passed.
- new case "keeps a manually refreshed trace when the tab is re-entered" fails
  before this change (the older snapshot comes back) and passes after it.
- the existing "loads a message trace lazily and reuses it for the same message"
  case still passes.
- npx eslint reports no errors; npx tsc -b passes.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/37984834094

With regards,
GitHub Actions via GitBox

Reply via email to