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

Remove NamespaceString ctors with default parameter for tenantId

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Serverless
    • Fully Compatible
    • Server Serverless 2023-06-12, Server Serverless 2023-06-26, Server Serverless 2023-07-10, Server Serverless 2023-07-24, Server Serverless 2023-08-07
    • 3

      Remove the NamespaceString ctors that take a default parameter. At the point we do this ticket, most (hopefully all!) places that need a tenantId should already be passed one. If there are any places that don't take in a TenantId explicitly yet, we'll need to decide whether we should pass boost::none explicitly, or whether there is an actual tenantId that should be passed.

      Any unit tests can take in boost::none (unless they test multitenancy). If there are any places where an explicit tenantId should be passed that we haven't changed yet, we can change this as a part of this ticket if the tenantId we want to pass is available easily. If there is work to be done to thread the tenantId through, we should file a separate ticket to do that work, pass boost::none at the callsite, and leave a TODO on the filed ticket.

            Assignee:
            mathis.bessa@mongodb.com Mathis Bessa (Inactive)
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: