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

Add types to generic_argument.idl

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Service Arch
    • Fully Compatible
    • v8.0
    • Service Arch 2024-04-01, Service Arch 2024-04-15, Service Arch 2024-04-29
    • 144

      generic_argument.idl is used as the canonical list of arguments that all commands can accept. It does not currently contain any type information for any of this arguments, despite the fact that some of these arguments do in fact have types that are enforced. This limitation is why we also have generic_args_with_types.idl (see SERVER-72684).

      We should introduce types to the request arguments, so that in SERVER-85791, the IDL-injected arguments will properly parse them and enforce type safety. This also has the benefit of making the C++ code more type safe as well.

      Once this work is completed, the majority of what is needed for SERVER-72684 will be done, so we can subsequently complete that as well.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: