mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-03 01:23:31 +01:00
feat(admin): errors page built around issues, linked to repositories and users
The admin Errors page now shows one list of issues: records grouped by error code (or exception type), service and route, each with a plain-language title, a likely cause, its impact (failures, repositories, users), a trend and when it was last seen. Expected 4xx answers sit in a collapsed group; slow and interrupted requests are left out and counted, with a link to Performance. - GET /api/admin/errors/issues groups server-side (admin-error-issues.ts). It reads central logs when they answer and the Redis history otherwise, accepts validated repoId/userId/service/window filters and resolves repository owners and user names when the database is connected. - The cause is derived from external_request records of the same requests (#990 field names), fast 429s, storage and network codes, and the first application stack frame; otherwise it says nothing is known. - Issue page (?issue=) with cause, affected repositories and owners, who hit it, failures over time and occurrences. Request view (&occurrence=) with a waterfall from the existing correlation lookup and Request, Exception and All fields tabs; missing data shows as "not recorded". - Repositories (search = one repoId) and user admin pages list their issues, with a "failing now" banner. - The source switch, export, clear history, telemetry and 24-hour counters move to a collapsed "Settings and diagnostics" section. - Synthetic fixtures shared by dev-mock and preview-errors; old errors-page CSS removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c281841f91
commit
2abd6beaa9
21 files changed
+2053
-2323
No files matched your search
@@ -5,6 +5,7 @@ import { render as signinTemplate } from "../partials/signin.htm";
|
||||
import { render as template0 } from "../partials/404.htm";
|
||||
import { render as template1 } from "../partials/admin/conferences.htm";
|
||||
import { render as template2 } from "../partials/admin/errors.htm";
|
||||
import { render as adminEntityErrorsTemplate } from "../partials/admin/entityErrors.htm";
|
||||
import { render as template3 } from "../partials/admin/overview.htm";
|
||||
import { render as template4 } from "../partials/admin/queues.htm";
|
||||
import { render as template5 } from "../partials/admin/repositories.htm";
|
||||
@@ -39,6 +40,7 @@ export const templates = {
|
||||
"partials/admin/emails.htm": adminEmailsTemplate,
|
||||
"partials/admin/conferences.htm": template1,
|
||||
"partials/admin/errors.htm": template2,
|
||||
"partials/admin/entityErrors.htm": adminEntityErrorsTemplate,
|
||||
"partials/admin/overview.htm": template3,
|
||||
"partials/admin/queues.htm": template4,
|
||||
"partials/admin/repositories.htm": template5,
|
||||
|
||||
Reference in new issue
Block a user