[COMPASS-6272] Expose setNamespace function in compass-export-to-language for Data Explorer Created: 02/Nov/22  Updated: 27/Oct/23  Resolved: 17/Nov/22

Status: Closed
Project: Compass
Component/s: Export to Language
Affects Version/s: None
Fix Version/s: No version

Type: Story Priority: Major - P3
Reporter: Jack Weir Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-11-02 at 4.13.26 PM.png    
Issue Links:
Depends
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

Would it be possible to expose the setNamespace function in @mongodb-js/compass-export-to-language? Without this setNamespace hook, Data Explorer is unable to update the store with the correct namespace, leaving it missing in the generated driver syntax.

Ideally setNamespace could be exported just as configureStore is currently.

Screenshot of the issue that this causes in Data Explorer for reference, notice the missing namespace in the exported pipeline  


Generated at Wed Feb 07 22:42:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.