[AAP-95471] Empty State Bug Fix #3691
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 227 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.325
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3691"
general
weight: 0.35
lgalis
https://redhat.atlassian.net/browse/AAP-95471
Summary
The Leaderboard had a bug, where if there's no data and we have a fresh instance, the Leaderboard tab would be in error state
Root Cause:
the admin user isn't in any organization, so the API returns org_streak: null and user_organization_rank: null. The mapping function assumed these would always be populated objects.
Type of Change
Risk Analysis - REQUIRED
<!-- SELECT ONE. This is required — the PR check will fail if none is selected. -->
Screenshots
Pre Fix console error:
Uncaught TypeError: Cannot read properties of null (reading 'streak')at mapLeaderboardReport (useAutomationLeaderboardsView.ts:109:40)
at useAutomationLeaderboardsView (useAutomationLeaderboardsView.ts:173:15)
at AutomationLeaderboards (AutomationLeaderboards.tsx:148:69)
Post fix:
<img width="1036" height="468" alt="image" src="https://github.com/user-attachments/assets/c723fe9c-6698-408e-a6da-c1e6d1baf375" />
<!-- If applicable. Any visual/UI changes MUST include before and after screenshots. -->