Skip to content

Show entity history failures separately from an empty history. - #1567

Merged
WaylandYang merged 2 commits into
deeplethe:devfrom
virtue039:fix/entity-history-show-load-failure
Dec 1, 2026
Merged

WaylandYang merged 2 commits into
deeplethe:devfrom
virtue039:fix/entity-history-show-load-failure

Conversation

@virtue039

Copy link
Copy Markdown
Contributor

Why

When the first entity history request failed, the panel showed an empty-history message. Readers could mistake a failed request for an absence of records.

What changes

Show the request error and a retry action when no data is available. Keep already-loaded history visible during a failed refresh.

How it was checked

The error-state regression verifies the error message and retry callback. The old panel rendered the empty-history message instead.

  • Commit 30e9899 on macOS arm64, based on dev at 87a83b9.
  • Passed cargo fmt --all --check and cargo clippy --workspace --all-targets -- -D warnings.
  • Cargo workspace tests passed (1870 tests), with a dedicated PostgreSQL 16.15 database, pgvector, and Poppler enabled.
  • pnpm test passed (357 tests). The benchmark helper suite passed (15 tests).
  • pnpm build passed, including type checking.
  • Rechecked the branch as a clean merge into current dev at 2614d99. The combined integration checkout passed Rust formatting, Clippy, the Rust workspace suite (1877 passed, 6 ignored), pnpm test (376 passed), TypeScript, the production build, and benchmark helper tests (15 passed). The first Rust workspace run hit a Tantivy lock in an unchanged search-recovery test. The full retry passed with four test threads.

Before review

  • The commit is signed off under the DCO.

Signed-off-by: Virtue039 <77153652+virtue039@users.noreply.github.com>

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, keeping the old history on a failed refresh is right. Merging. Small nit for later: the retry label borrows S.ask.retryHistory from chat. A history-specific string would read better.

@WaylandYang
WaylandYang merged commit 969f407 into deeplethe:dev Dec 1, 2026
6 checks passed
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