[SERVER-74489] Make NamespaceString::toStringWithTenantId private Created: 01/Mar/23  Updated: 29/Oct/23  Resolved: 05/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Sophia Tan
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-73108 Handle command request/reply serializ... Closed
depends on SERVER-73115 Always include tenant in collection n... Closed
depends on SERVER-74486 Always include tenant in collection n... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-05-01, Server Serverless 2023-05-15
Participants:
Story Points: 3

 Description   

In order to ensure NamespaceString is always serialized correctly, we will create context specific toString methods on NamespaceString and NamespaceStringUtil, and remove any default serialization behavior.



 Comments   
Comment by Githook User [ 05/May/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-74489 Make NamespaceString::toStringWithTenantId private
Branch: master
https://github.com/mongodb/mongo/commit/5c3ac23476c1db1fde06d7b145d0733ac0838041

Comment by Sophia Tan [ 24/Apr/23 ]

The call sites of `NamespaceString::toStringWithTenantId()` can only be changed to call the new implemented `NaemspaceStringUtil::serialize(nss, storageContext)` of SERVER-73108.  Before 73108, the `serialize` function cannot  create the tenant prefixed ns when feature flag is on.

Generated at Thu Feb 08 06:27:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.