Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-509

add db_name parameter to parse_uri()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 5.1.0b1, 5.0.0b1
    • Affects Version/s: None
    • Component/s: django
    • None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Feedback from slack:

      Some feedback I've heard from multiple people - people are using the parse_uri util function (awesome! very helpful!) but getting an error telling them they are missing NAME. This is because they are just copy and pasting the connection string from Atlas, and not editing it to include the name of their database. This error is confusing them.My thinking is either we (1) edit the util function to give a better error, basically we say if the thing following mongodb.net isn't /database_name we throw and more helpful error for them "You need to include the name of your database in your connection string... etc." or (2) we make the database name another required parameter, so they can just copy and paste the connection string from Atlas as they are already doing. 

       

       

       

       

            Assignee:
            tim.graham@mongodb.com Tim Graham
            Reporter:
            shubham.ranjan@mongodb.com Shubham Ranjan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None