mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 04:32:32 +00:00
325632e780
GET apps/fleet-context (MemberRead, QueryParam) counts one app over the tenant's last 7 days: installed, skipped, failed, incomplete, in progress, collision rows left out, the three most frequent failure codes. It reads the apps dashboard's partition query, leaves out the asking session and, with the culprit's app id, another app of the same name; no session point reads. AppFleetContextService caches the app's rows per tenant, channel, name and minute for 60 s (single flight). The classification is the analytics view's: MetricsMath.IsInstalled replaces six inline copies, AppsAnalyticsHelper.IsSameApp and TopFailureCodes are shared by analytics, sessions and the fleet context. The diagnosis page shows the result as a tile in "Around the failure" only when other enrollments exist (the read fails soft), with "Show sessions" on the app page where that page shows the viewed tenant. An expanded finding shows "Fired in N enrollments in the last 14 days" through useRuleFireStats and RecentFiresLine, both extracted from the session page, whose cross-tenant check now ignores case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>