Improve code clarity for IDL field deserialization

XMLWordPrintableJSON

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

      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
              Reporter:
              Alex Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: