[SERVER-30987] Enable and test $jsonSchema in the aggregation $match stage Created: 07/Sep/17  Updated: 30/Oct/23  Resolved: 26/Sep/17

Status: Closed
Project: Core Server
Component/s: Aggregation Framework, Querying
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-31168 Add integration testing for $jsonSche... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2017-10-02
Participants:

 Comments   
Comment by Githook User [ 26/Sep/17 ]

Author:

{'email': 'nicholas.zolnierz@mongodb.com', 'name': 'Nick Zolnierz', 'username': 'nzolnierzmdb'}

Message: SERVER-30987: Enable and test $jsonSchema in the aggregation $match stage
Branch: master
https://github.com/mongodb/mongo/commit/b1e0108555a28fc3f487be642e0d3ac34ddeb794

Comment by Nicholas Zolnierz [ 19/Sep/17 ]

As discussed, the test for $jsonSchema in a partialFilterExpression will be handled by SERVER-31168.

Comment by Ramon Fernandez Marina [ 13/Sep/17 ]

Author:

{'username': u'jseyster', 'name': u'Justin Seyster', 'email': u'justin.seyster@mongodb.com'}

Message:SERVER-30988 Fix misleading $jsonSchema error.

My original implementation of the $jsonSchema ban included a Status
error messaged that assumed the only reason to disallow $jsonSchema is
because of a featureCompatibilityVersion < 3.6. That assumption will
not be true, so this patch replaces that error with a generic
error. Code paths that include the $jsonSchema check because of the
featureCompatibilityVersion now rewrites this generic error with an
error that includes a link to the relevant documentation.

There is a ticket open to enable $jsonSchema in more places:
SERVER-30987.
Branch:master
https://github.com/mongodb/mongo/commit/c5e038cb5e25cfdd4037534d34ce0d4e11f5c1ec

Comment by David Storch [ 07/Sep/17 ]

nicholas.zolnierz, we should also verify that we have a test for $jsonSchema in a partialIndexFilter. If we do not have such an integration test, we should write one.

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