[SERVER-50746] Don't implicitly ignore _id in jstests/aggregation/extras/utils.js comparison functions Created: 03/Sep/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: Svilen Mihaylov (Inactive) Assignee: James Wahlin
Resolution: Fixed Votes: 0
Labels: greenerbuild, qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

jstests/aggregation/extras/utils.js provides a set of functions that can be used to compare objects and/or arrays. Some of these helpers ignore the _id field implicitly which can lead to test bugs where callers expect _id values to be compared. We should make any opt-out of _id comparison explicit in these helpers.



 Comments   
Comment by Githook User [ 22/Oct/20 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: SERVER-50746 Don't implicitly ignore _id in jstests/aggregation/extras/utils.js comparison functions
Branch: master
https://github.com/mongodb/mongo/commit/6670266e11305c2ba2ab63fae6e4db49378abf62

Comment by Githook User [ 21/Oct/20 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: Revert "SERVER-50746 Don't implicitly ignore _id in jstests/aggregation/extras/utils.js comparison functions"

This reverts commit 9d51067f896a8f03c7a654dc01189fef3a14b719.
Branch: master
https://github.com/mongodb/mongo/commit/e320102c1a35680332193a4dfe0b281eae2f1602

Comment by Githook User [ 21/Oct/20 ]

Author:

{'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}

Message: SERVER-50746 Don't implicitly ignore _id in jstests/aggregation/extras/utils.js comparison functions
Branch: master
https://github.com/mongodb/mongo/commit/9d51067f896a8f03c7a654dc01189fef3a14b719

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