[SERVER-76634] Add SerializationContext object to ExpressionContext Created: 27/Apr/23  Updated: 29/Oct/23  Resolved: 16/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Hugh Tong (Inactive) Assignee: Hugh Tong (Inactive)
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-74284 Fix existing tests for command serial... Closed
is depended on by SERVER-76635 Override SerializationContext when pa... Closed
is depended on by SERVER-76677 Provide SerializationContext to seria... Closed
is depended on by SERVER-76864 Pass SerializationContext obj into Cu... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-05-15, Server Serverless 2023-05-29
Participants:
Story Points: 5

 Description   

The AggregateCommandRequest object is parsed on the top level of the request, but that request may not necessarily be available to all the document source commands on the pipeline.  These document source commands may not contain the same context as the top-level aggregate request does, which means we should build a common serialization context used by all document source commands in order to ensure all serialization/deserialization actions are consistent with the structure of the aggregate request.  Because these commands share an Expression Context, we can place a SerializationContext object there to make it accessible to any document source down the line.

As the goal of these changes are in pursuit of fixing tests that will fail once serializeForCommands and deserializeForCommands are plumbed in, no new tests are being added for this ticket.



 Comments   
Comment by Githook User [ 15/May/23 ]

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-76634 Add SerializationContext object to ExpressionContext
Branch: master
https://github.com/mongodb/mongo/commit/b45d9b1215bedf4328bded55913475dd6b589e92

Generated at Thu Feb 08 06:33:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.