[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: SERVER-51781 $sampleRate and $regex edge cases should have error annotations
Branch: master
https://github.com/mongodb/mongo/commit/587288e528cd82f1e455412828b545aee1852764

Generated at Thu Feb 08 05:26:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.