fix: Allow velocity templates in number fields from connectors #130
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
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.317
Real PR Conversation Timeline
1 comments
"Review active on #130"
general
weight: 0.35
gibson9583
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
templatableproperty 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
templateWidththat 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