← Back to Pull requests

Show empty-string extra vars on job Details (AAP-85950) #3546

Closed
unknown closed this pull request without merging on Sep 09, 2026 17:05 UTC
View on GitHub
unknown unknown commented on Sep 04, 2026 07:52 UTC
Author

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 in getFilteredExtraVars() so Details matches Review and GET /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


  • Bug fix

  • Risk Analysis - REQUIRED


  • Low — Narrowly scoped (Job Details extra vars display + unit tests). Does not change launch or extra-vars injection.

  • Testing


    Automated


  • npx vitest run frontend/awx/views/jobs/jobUtils.test.tsx frontend/awx/views/jobs/JobDetails.test.tsx

  • Manual


  • Local Platform UI (PLATFORM_SERVER + npm start) against RPM AAP 2.6

  • Launch JT with Prompt on Launch extra vars {"x": "", "y": "value"}

  • Review showed x; Details previously showed only y; after this change Details shows x (empty) and y

  • Playbook: x is defined, value: ''

  • Screenshots


    Launch extra vars: {"x": "", "y": "value"}

    Before


    Job Details Extra variables showed only y (x was 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) and y.
    <img width="1894" height="952" alt="after" src="https://github.com/user-attachments/assets/6df17d41-46ca-4972-ba47-834905a392a3" />AAP-85950

  • Assisted by Cursor Grok 4.6
  • Diff: 214 lines (+160 / -54) across 2 files Reviewer: keithjgrant Review duration: 7753m
    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
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.6% (MEDIUM) · Higher = larger blast radius
    36.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.4% · Safe to merge
    14.4%