Skip to content

Show activity log failures with a retry in knowledge base settings - #1507

Merged
WaylandYang merged 2 commits into
deeplethe:devfrom
Maya-Kid:codex/report-kb-activity-load-errors
Nov 16, 2026
Merged

WaylandYang merged 2 commits into
deeplethe:devfrom
Maya-Kid:codex/report-kb-activity-load-errors

Conversation

@Maya-Kid

Copy link
Copy Markdown
Contributor

Why

When the knowledge base audit request fails, Activity fills in an empty event array and a zero total. A temporary 503 therefore looks like a successful query that found no records.

What changes

  • Show a localized error and a Retry button. Retry refetches the current query key, preserving the selected action, date range and page.
  • Only show the count, results and pagination for successful data for the active query. Keep the selected action visible when a request fails.

How it was checked

  • Linux Chromium 145 with a mocked audit API. The regression fails on unmodified dev and passes with this change. It covers initial and second-page 503 responses, exact action/date/limit/offset preservation on retry, genuine empty results, and loading a new filter after a cached empty result.
  • Linux Vitest suite, including first load, a 503 with and without cached empty data, and a successful empty response. The benchmark script tests and production web build also passed.

Before review

  • The commit is signed off.
  • Web tests and production build pass.
  • UI strings are in both language bundles.

Signed-off-by: Maya Kid <BinjunYann@gmail.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 — a failed load no longer passes for an empty log. Merging.

@WaylandYang
WaylandYang merged commit ddf4f93 into deeplethe:dev Nov 16, 2026
6 checks passed
@Maya-Kid
Maya-Kid deleted the codex/report-kb-activity-load-errors branch November 29, 2026 05:59
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