[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: |
| Comment by Githook User [ 21/Oct/20 ] |
|
Author: {'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}Message: Revert " This reverts commit 9d51067f896a8f03c7a654dc01189fef3a14b719. |
| Comment by Githook User [ 21/Oct/20 ] |
|
Author: {'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}Message: |