[SERVER-82504] ExpressionContext::ns should be populated when resolved if find command only provides UUID Created: 27/Oct/23  Updated: 24/Nov/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: 7.2.0-rc0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Serhii Lysenko Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

ExpressionContext constructor that takes const FindCommandRequest& findCmd constructs `ns` memer as

 

findCmd.getNamespaceOrUUID().isNamespaceString() ? findCmd.getNamespaceOrUUID().nss()
:NamespaceString{},

 
Instead it should deduce namespace fro UUID.
 
 
 
The same applies to constructor that takes DistinctCommandRequest


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