[SERVER-67817] Change NamespaceStringOrUUID::db() to dbName() and return DatabaseName Created: 06/Jul/22  Updated: 29/Oct/23  Resolved: 25/Apr/23

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

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:
Backports
Depends
is depended on by SERVER-66887 Remove NamespaceStringOrUUID::dbname() Closed
Related
related to SERVER-76521 Remove TODO SERVER-67817 Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: Server Serverless 2023-05-01
Participants:
Story Points: 3

 Description   

Currently, it returns a string. It should return a DatabaseName obj instead.

Also, rename it to be `dbName()` and delete the existing `dbName()` which returns `boost::optional<DatabaseName>`.



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

Author:

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

Message: SERVER-67817 Change NamespaceStringOrUUID::db() to dbName() and return DatabaseName

(cherry picked from commit bf85402724a8648d4ba8f13f2f76f69c3bd5ce85)
Branch: v7.0
https://github.com/mongodb/mongo/commit/760672fc8a120b168d3d96cef48c9968246a993c

Comment by Githook User [ 04/May/23 ]

Author:

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

Message: SERVER-76521: Remove TODO SERVER-67817
Branch: master
https://github.com/mongodb/mongo/commit/665f4c3dd5d69c414a5970fdc7ea5b2d1673ec41

Comment by Githook User [ 24/Apr/23 ]

Author:

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

Message: SERVER-67817 Change NamespaceStringOrUUID::db() to dbName() and return DatabaseName
Branch: master
https://github.com/mongodb/mongo/commit/bf85402724a8648d4ba8f13f2f76f69c3bd5ce85

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