Refactor Events, Requests, Responses

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Correctness
    • Fully Compatible
    • Correctness 2026-03-10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some ideas after early work has landed to see how this ought to scale better:

      • Make an isolated messages.cpp/h file
      • Refactor responses so that they are easy to test JSON input/output (without "sending" anything via adapter sockets)
      • Add unit tests
      • Use a BSONObjBuilder to avoid directly constructing hard-to-maintain json strings
      • Namespace everything under "debugger" (mongo::mozjs::Message etc is way to generic)
      • Use the Request::toJSON to create specific request instances for better polymorphism: https://github.com/10gen/mongo/pull/48605#discussion_r2854774981

            Assignee:
            Steve McClure
            Reporter:
            Steve McClure
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: