Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2585

Simplify normalization logic for URI options and command line options

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Some URI options have command line (CL) options as their mirrored counterparts. Currently though, we have ~10 lines of code to normalize/sync the structs for every URI-CL pair. This quickly adds up with 20+ possible URI options.

      We should see what possible ways there are to substitute this logic out for something more modular, perhaps with marshalling/unmarshalling structs and comparing fields iteratively as one idea.

      Also note that the work done on GODRIVER-1588 will likely change ConnString fields to pointers which may influence – and hopefully help with – any design decisions here. We should wait for completion of the relevant ticket in that epic first (GODRIVER-1498).

            Assignee:
            Unassigned Unassigned
            Reporter:
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: