Add SerializationContext object to ExpressionContext

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: