← Back to Pull requests

[19.0][FIX] dms: allow saving subdirectories when created from parent context #522

Closed
miraaz closed this pull request without merging on Oct 21, 2026 15:55 UTC
View on GitHub
miraaz miraaz commented on Oct 08, 2026 23:09 UTC
Author

Bug Description


When creating a new subdirectory from an existing directory's form view (Subdirectories tab -> Add a line), the web client (OWL) marks the Parent Directory field as missing (Missing required fields), blocking the save.

Although context provides default_parent_id (as seen in complete_name), the user is forced to manually re-select the parent directory from the dropdown list.

Solution


Allow parent_id to be hidden and bypass strict client-side requirement when default_parent_id is present in context:
invisible="is_root_directory or context.get('default_parent_id')"
required="not is_root_directory and not context.get('default_parent_id')"

Diff: 86 lines (+64 / -22) across 1 files Reviewer: None requested Review duration: 18286m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.42) × (1 − Review Confidence (0.54)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 86 lines diff across 1 files
0.42
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: 10%
54%
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
Shallow Review Depth shallow_review_depth
0.289
Diff Size diff_size
0.267
No Reviewer Assigned no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #522"
general weight: 0.35
Reviewers
None requested
Assignees
miraaz miraaz
Labels
risk: low confidence: 54.2% 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: 41.7% (MEDIUM) · Higher = larger blast radius
41.7%
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: 54.2% · Lower = rushed or shallow review
54.2%
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: 19.1% · Safe to merge
19.1%
Repository