Describe the Bug
Validation for the patient_id field is not working with muting.
How To Reproduce The Issue
Add a muting configuration
Add a validation rule for patient_id field. e.g. "rule": "regex('^[0-9]{5,13}$')"
Send a message that should fail the above rule. e.g. OFF abc
See the reports, the above validation rule is ignored
Expected Behavior
Until 3.9, we used to get the error specified in the validation rule. e.g. Please ensure that the ID is correct and is between 5 to 13 digits.
Screenshots
Until 3.9: correct error message related to the validation
We have been using update_notifications transition (which is deprecated in the favor of muting) in many SMS projects. We don’t have this problem in the update_notifications.
Should we move to muting after communicating with the partner that the error messages will be less specific, or keep using update_notifications? What do you suggest?
It’s fairly easy to restore the previous functionality (with the validation error added before checking for patient), but does require a release.
I can’t advise to use update_notifications, it’s deprecated and has not received updates and does not offer all functionality that muting offers (for example, muting will mute all contacts that are newly created under a muted place!).
Are the specific messages about the patient_id validation critical?
Are the specific messages about the patient_id validation critical?
Need to check with the partner or the delivery team, but I think there will be concerns because they are used to getting specific error messages. We can wait until the next release.