[COMPASS-6182] Export modal does not open when count of document fails. Created: 10/Oct/22  Updated: 27/Oct/23  Resolved: 14/Feb/23

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

Type: Bug Priority: Major - P3
Reporter: Basit Chonka Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to COMPASS-5667 Count of documents on find does not work Open
Documentation Changes: Not Needed

 Description   

When using `$where` in a query and trying to export collection results, the export modal does not open.

DataService calls driver.countDocuments which converts the query to pipeline which does not support $where and throws an errors, which remains hidden from user.

Source: Slack



 Comments   
Comment by Angelo Reale (Inactive) [ 14/Feb/23 ]

Thanks basit.chonka@mongodb.com , when can we expect this to be available in a compiled version?

Comment by Basit Chonka [ 14/Feb/23 ]

Was fixed in https://github.com/mongodb-js/compass/pull/3866

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