mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-02 17:13:33 +01:00
fix(admin): split uncoded errors by crash site, label signed-in visitors, scope external calls
- Errors without a code are grouped by their first app stack frame (or the logging module), so unrelated TypeErrors no longer share one issue. - "visitor" is a signed-in user with no role on the repository; it is no longer shown as "not signed in". Anonymous viewers are counted apart. - The issue page no longer offers "Open user" next to "Open repository": users and repositories are counted from different records. - With a service, repository or user filter, failed external calls are looked up by the faults' request IDs instead of the newest 2000 calls overall. - The page says when the 2000-failure cap was reached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d3860f29ad
commit
fdd8f58944
7 files changed
+74
-22
No files matched your search
@@ -83,7 +83,8 @@ export function waterfall(events, issue) {
|
||||
/** Role-only chip for the request header: the owner is already linked beside it. */
|
||||
export function viewerChip(viewer) {
|
||||
if (!viewer) return "";
|
||||
if (viewer === "visitor" || viewer === "anonymous") return "Viewer not signed in";
|
||||
if (viewer === "anonymous") return "Viewer not signed in";
|
||||
if (viewer === "visitor") return "Viewer: signed-in visitor";
|
||||
return `Viewer: ${(SIGNED_IN[viewer] || viewer).toLowerCase()}`;
|
||||
}
|
||||
|
||||
@@ -91,6 +92,7 @@ export function viewerChip(viewer) {
|
||||
export function viewerLabel(viewer) {
|
||||
if (!viewer) return "";
|
||||
if (SIGNED_IN[viewer]) return `Signed in as ${SIGNED_IN[viewer].toLowerCase()}`;
|
||||
if (viewer === "visitor") return "Signed-in visitor (no role on the repository)";
|
||||
return "Viewer not signed in";
|
||||
}
|
||||
|
||||
@@ -222,6 +224,7 @@ export const errorsAdminController = function (state, http, location, interval)
|
||||
if (!data) return "";
|
||||
if (data.source === "history" && data.centralState === "skipped") return "Central logs are not used while this switch is on.";
|
||||
if (data.source === "history") return ({ disabled: "Central logs are not configured.", unreachable: "Central logs did not answer.", busy: "Central logs are busy.", misconfigured: "Central log configuration is invalid." })[data.centralState] || "";
|
||||
if (data.faultLimitReached) return "Showing the newest 2,000 failures: older issues in this window may be missing. Narrow the window or filter by service.";
|
||||
if (data.state === "partial") return "Partial: a record limit or an invalid record reduced coverage.";
|
||||
return "";
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user