← Back to Pull requests

fix(data-editor): keep YAML parse errors visible after blur (AAP-93178) #3670

Closed
unknown closed this pull request without merging on Sep 29, 2026 21:58 UTC
View on GitHub
unknown unknown commented on Sep 29, 2026 16:34 UTC
Author

Description

Jira issue # AAP-93178

Follow-up to #3600. On job template create, default extra_vars is ---\n. When users enter invalid YAML, the form value does not update; on blur, PageFormDataEditor re-synced from stale watchValue, reset Monaco, and cleared the parse error—causing Jenkins tier1 failure in job-template-validation.spec.ts.

  • Skip watchValue resync while parseErrorRef is active.

  • On parse failure in handleChange, keep dataEditorValue aligned with editor text.

  • E2E: assert helper on extra-vars-form-group; remove @tier1 from validation specs (per playwright/Playwright.md).

  • Unit test: parse error remains after blur with AWX default ---\n.
  • Type of Change

  • Bug fix

  • New feature/ enhancement

  • Documentation update

  • Tests

  • Other (please specify)
  • Required Backend Work (if applicable):

    None.

    Feature Flags (if applicable):

    N/A

    Testing

    • E2E Run:

  • Cypress Tests: E2E tests completed successfully (npm run e2e:run)

  • Playwright Tests: E2E tests completed successfully (cd playwright && npm run live)
  • • Manual testing instructions:

    1. Create job template → Extra variables → paste indented --- / a: b.
    2. Blur the field; confirm js-yaml helper text stays visible and no |2- growth.
    3. Create job template submit should remain blocked with error shown.

    • Screenshots (if applicable):

    N/A

    • Test coverage

  • Component/unit/integration test added/updated to cover the changes introduced in this PR.
  • Additional Notes

    Related backport: https://github.com/ansible-automation-platform/aap-ui/pull/3025

    Risk Analysis - REQUIRED

  • High — Broad platform impact

  • Medium — Scoped but cross-cutting

  • Low — Narrowly scoped
  • Made with Cursor

    Diff: 234 lines (+175 / -59) across 2 files Reviewer: lgalis Review duration: 324m
    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 · 234 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.327
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3670"
    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: 37.1% (MEDIUM) · Higher = larger blast radius
    37.1%
    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.7% · Safe to merge
    14.7%