[SERVER-74486] Always include tenant in collection name attributes in error messages Created: 01/Mar/23 Updated: 29/Oct/23 Resolved: 19/Apr/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: |
|
||||||||||||||||
| Assigned Teams: |
Serverless
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | Server Serverless 2023-04-17, Server Serverless 2023-05-01 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Story Points: | 3 | ||||||||||||||||
| Description |
|
See design doc for rules. |
| Comments |
| Comment by Githook User [ 18/Apr/23 ] |
|
Author: {'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}Message: |
| Comment by Sophia Tan [ 23/Mar/23 ] |
|
We also need to create a new function on NamespaceStringOrUUID "toStringForErrorMsg". |
| Comment by Janna Golden [ 01/Mar/23 ] |
|
When a NamespaceString is included in an error message (uasserts, etc.), the tenantId should always be included as the prefix (for now). In this ticket, we should create a new function on NamespaceString "toStringForErrorMsg", which returns the prefixed name. Then, we should change any error messages which call NamespaceString::toString, NamespaceString::toStringWithTenantId, or NamespaceString::ns directly to call NamespaceString::toStringForErrorMsg instead. |