Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v10.4.x] Alerting: Fix optional fields requiring validation rule #84595

Merged
merged 1 commit into from Mar 15, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 85bd116 from #84584


Prior to this PR an optional field with a custom validationRule would not allow the form to be completed without passing the (non-empty) validation rule.

This PR adds an additional check for empty optional fields when validation the regular expression in validationRule.

Fixes #84296

@gillesdemey gillesdemey enabled auto-merge (squash) March 15, 2024 14:59
@gillesdemey gillesdemey merged commit 2fb6deb into v10.4.x Mar 15, 2024
22 checks passed
@gillesdemey gillesdemey deleted the backport-84584-to-v10.4.x branch March 15, 2024 15:05
@mdvictor mdvictor modified the milestones: 10.4.x, 10.4.1 Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants