[18.0][FIX] hr_appraisal_oca: read public employee profiles #1670
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.25) × (1 − Review Confidence (0.70)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.25 · 13 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 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.158
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
3 items
Hi @ebauza, @pedrobaeza,
some modules you are maintaining are being modified, check this out!
Approved
Approved these changes.
pedrobaeza
parabol123654
Fixes #1669.
can_open_last_appraisalis defined onhr.employee.base, so it is also computed forhr.employee.public. Its compute readsemployee.sudo().allowed_user_ids, which only exists onhr.employee. Reading the public profiles with all their fields therefore raises:The fix reads the allowed users on the
hr.employeerecord of the same id (public profiles share the ids of the employees), as superuser, like the compute already did since #1662.Test:
test_read_public_employeesreads the public profiles with all fields as an internal user.AttributeErrorabove.Assisted-by: Claude Opus 5.5