Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-76634

Add SerializationContext object to ExpressionContext

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • Server Serverless 2023-05-15, Server Serverless 2023-05-29
    • 5

      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.

            Assignee:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Reporter:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: