Show empty-string extra vars on job Details (AAP-85950) #3546
All Vouch review confidence checks passed
Residual risk 0.14 = 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 · 214 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.321
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3546"
general
weight: 0.35
keithjgrant
Summary
Job Details hid extra vars whose value is an empty string (
""). The job API and playbook still received those keys, which made troubleshooting look like the variable was never set.This removes the
value !== ''filter ingetFilteredExtraVars()so Details matches Review andGET /api/controller/v2/jobs/<id>/.Fixes AAP-85950.
This is the inverse of the AAP-49448 Details display filter. Explicit empty extra vars (Prompt on Launch) are valid Ansible extra vars and must remain visible.
Type of Change
Risk Analysis - REQUIRED
Testing
Automated
npx vitest run frontend/awx/views/jobs/jobUtils.test.tsx frontend/awx/views/jobs/JobDetails.test.tsxManual
PLATFORM_SERVER+npm start) against RPM AAP 2.6{"x": "", "y": "value"}x; Details previously showed onlyy; after this change Details showsx(empty) andyx is defined, value: ''Screenshots
Launch extra vars:
{"x": "", "y": "value"}Before
Job Details Extra variables showed only
y(xwas hidden).<img width="1894" height="952" alt="before" src="https://github.com/user-attachments/assets/6358960f-de2f-4582-93b3-3b82fcc201ea" />
After
Job Details Extra variables shows both
x(empty string) andy.<img width="1894" height="952" alt="after" src="https://github.com/user-attachments/assets/6df17d41-46ca-4972-ba47-834905a392a3" />AAP-85950