[SERVER-51781] $sampleRate and $regex edge cases should have error annotations Created: 21/Oct/20 Updated: 29/Oct/23 Resolved: 22/Oct/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mihai Andrei | Assignee: | Mihai Andrei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Query 2020-11-02 |
| Participants: |
| Description |
|
The $sampleRate match expression is allowed in validator expressions if it has an argument of 0 or 1. As such, each of these cases should have error annotations to allow for validation errors to be generated for $sampleRate. Additionally, a couple of edge cases for $regex (here and here) should have error annotations as well. |
| Comments |
| Comment by Githook User [ 22/Oct/20 ] |
|
Author: {'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}Message: |