AAP-85721: Warn before deleting job templates in use by workflows #3827
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.44) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 219 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.323
Real PR Conversation Timeline
1 comments
"Review active on #3827"
general
weight: 0.35
swatinarvekar
Summary
Restores the AAP 2.4-style delete warning when removing a job template that is referenced by workflow job template nodes.
In 2.6/2.7 the confirmation dialog only showed the template name with no dependency notice. Deleting a single job template now queries related workflow job template nodes and surfaces an in-use warning with the node count (and a general impact note for multi-delete). Fixes AAP-85721 for the job-template → workflow-node case.
Type of Change
Risk Analysis - REQUIRED
Dependencies
Manual Testing
1. Create a job template (e.g.
delete_me)2. Create a workflow job template and add
delete_meas a node3. Templates → delete
delete_me4. Confirm the dialog warns the JT is in use and lists Workflow Job Template Nodes with count
5. Delete an unused JT and confirm no in-use warning appears