← Back to Pull requests

fix: Allow velocity templates in number fields from connectors #130

Open
unknown opened this pull request with 198 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 22, 2026 16:24 UTC
Author

All of the integer fields in OIE Web Client web UI built-in connectors are of type number, allowing them to be increased or decreased with some fancy arrows. However, this prevents the capability of using Velocity templates to obtain data from map variables:

<img width="557" height="120" alt="image" src="https://github.com/user-attachments/assets/058144a4-65a8-4aca-b4fb-18fc509c4dc0" />

The Swing client allow strings in these fields for the same reason:
<img width="1098" height="382" alt="image" src="https://github.com/user-attachments/assets/a9779ef1-2831-4661-8c76-5750d9dc0833" />
<img width="1364" height="202" alt="image" src="https://github.com/user-attachments/assets/d6751ab2-aa6a-42cf-b038-4122e539b9a2" />

However it seems there are some numeric fields in the Swing client that only allow numbers. These fields are created with the following constructor:

MirthFieldConstraints(0, false, false, true)
<img width="966" height="350" alt="image" src="https://github.com/user-attachments/assets/1e79821d-9f84-4d02-9d65-f1e70e817e22" />

For these cases there is a new templatable property to indicate if the numeric field does support templates. The web client connectors were compared with the OIE server code to identify these fields.
Also there is a property templateWidth that allows to specify a different custom width when the field contains a template. If unspecified, it uses the default text width:

velocity-templates-oie-web-client.webm

Diff: 198 lines (+148 / -50) across 2 files Reviewer: gibson9583 Review duration: 5585m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 198 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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.344
Diff Size diff_size
0.317
Real PR Conversation Timeline
1 comments
"Review active on #130"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% 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.1% (MEDIUM) · Higher = larger blast radius
36.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: 46.7% · Lower = rushed or shallow review
46.7%
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.2% · Safe to merge
19.2%