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

Improve code clarity for IDL field deserialization

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • Programmability 2024-05-27, Programmability 2024-06-10, Programmability 2024-06-24

      The field deserialization code in the IDL generator is confusing to read and there's a lot of duplicated code. An example of an improvement is encapsulating the deserializer arguments into a context, renaming certain arguments ("bson_element", "ast_type" could be renamed to something more accurate), and restructuring functions ("_gen_variant_deserializer_from_obj" and "_gen_variant_deserializer" do different things but are named in a way that suggests they are similar).

            Assignee:
            Unassigned Unassigned
            Reporter:
            alex.li@mongodb.com Alex Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: