[SERVER-43644] validate() helper in src/shell/collections.js should only accept an object, not also a boolean which is interpreted as the 'full' option Created: 25/Sep/19  Updated: 29/Oct/23  Resolved: 02/Oct/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-13058 Investigate changes in SERVER-43644: ... Closed
Related
is related to MONGOSH-925 Align db.coll.validate() argument wit... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-10-07
Participants:

 Description   

Code in question.

We now have 'background' as an option as well as 'full', so the shell helper needs to be updated not to accept just a raw boolean that is currently interpreted as value for the 'full' setting.

The function parameter should be named something like 'opts' instead of 'full', and any callers just specifying a boolean value must be updated.



 Comments   
Comment by Githook User [ 02/Oct/19 ]

Author:

{'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek'}

Message: SERVER-43644 Update 'validate' shell helper to use an object instead of a boolean
Branch: master
https://github.com/mongodb/mongo/commit/3a23860614f2d4b69381a561f5c39ec797920a58

Comment by Githook User [ 02/Oct/19 ]

Author:

{'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek'}

Message: SERVER-43644 Update 'validate' command help message
Branch: master
https://github.com/mongodb/mongo/commit/112ba53f3aed53d1ca9ae3171117007ccd6118bd

Comment by Githook User [ 02/Oct/19 ]

Author:

{'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek'}

Message: SERVER-43644 Update fuzzer to reflect 'validate' command parameter ch… (#223)
Branch: master
https://github.com/10gen/jstestfuzz/commit/293b5dd53a7a5a23d5cb7a609307070011dc79f8

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