← Back to Pull requests

fix: persist cleared workflow node job/skip tags (AAP-65215) #3706

Open
swatinarvekar opened this pull request with 17 lines diff across 3 files
View on GitHub
swatinarvekar swatinarvekar commented on Oct 06, 2026 12:47 UTC
Author

Depends on https://github.com/ansible/ansible-ui/pull/3705

Merge only after that PR is merged.

Summary

  • AAP-65215 issue 2: clearing job tags / skip tags on a workflow node Prompts step did not persist

  • Empty tags were saved as null (inherit from the job template), so tags came back on the next edit

  • Save empty job tags and skip tags as "" so they stay cleared
  • Type of Change

  • Bug fix

  • Enhancement

  • Tests

  • Documentation

  • Other (please specify)
  • Risk Analysis - REQUIRED

  • High — Broad platform impact (e.g., SWR config, shared framework components, authentication, routing, API wrappers, build/bundler config). Changes affect multiple workspaces or could cause widespread regressions.

  • Medium — Scoped but cross-cutting (e.g., shared utility functions, changes to multiple pages within one workspace, component library updates, test infrastructure). Limited blast radius but touches common code paths.

  • Low — Narrowly scoped (e.g., single page fix, styling tweak, documentation, test-only changes, copy/string updates). Minimal risk of unintended side effects.
  • Testing

    Manual Testing

  • Edit a workflow node, Prompts: clear all job tags and skip tags, save node and workflow

  • Edit the same node again: tags stay empty (do not come back from the job template)

  • Setting tags still saves and shows correctly
  • AAP-65215

    Diff: 17 lines (+15 / -2) across 3 files Reviewer: h-kataria Review duration: 14217m
    All Vouch review confidence checks passed
    Residual risk 0.02 = Change Risk (0.23) × (1 − Review Confidence (0.90)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.23 · 17 lines diff across 3 files
    0.23
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.91 · 4 substantive comment(s)
    0.91
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    90%
    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.173
    Real PR Conversation Timeline
    6 items
    h-kataria h-kataria approved these changes on Oct 06, 2026 15:36 UTC
    Approved Reviewer

    CI is green and the change is well covered.

    This review was created with AI assistance.

    h-kataria h-kataria commented on code on Oct 06, 2026 15:36 UTC
    Code Review
    frontend/awx/resources/templates/WorkflowVisualizer/hooks/useSaveVisualizer.tsx:1
    @@ -207,6 +207,10 @@ export function useSaveVisualizer(templateId: string) {
                 if (!isPrompt) {
                   return;
                 }
    +            if (key === 'job_tags' || key === 'skip_tags') {

    Sending an empty string for cleared job_tags / skip_tags overrides is the right API shape, but this path is not covered in useSaveVisualizer.test.ts yet. A small unit case that asserts the create/update payload uses "" (not null) when the user clears tags would lock in the fix alongside #3705.

    This review was created with AI assistance.

    github-actions[bot] github-actions[bot] commented on Oct 06, 2026 16:44 UTC
    Bot

    <!-- waiting-on-author-checks -->
    @swatinarvekar — The following PR checks have failed:

  • ❌ Signed commits

  • ❌ All checks passed
  • Please address these failures.

    acruzgon acruzgon commented on Oct 12, 2026 15:50 UTC
    Contributor

    Hi @swatinarvekar Thanks for your contribution! This repository requires signed commits. Could you please update your PR accordingly? Here are instructions on signing commits.
    https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

    Reviewers
    Assignees
    swatinarvekar swatinarvekar
    Labels
    risk: low confidence: 90% 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: 23.2% (LOW) · Higher = larger blast radius
    23.2%
    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: 90% · Lower = rushed or shallow review
    90%
    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: 2.3% · Safe to merge
    2.3%