[COMPASS-6082] RegExp sometimes breaks Compass Created: 30/Aug/22  Updated: 30/Nov/22

Status: Waiting (Blocked)
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Benji Asperheim Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

macOS Monterey (v12.5.1) ARM64
MongoDB Compass (v1.32.6)
MongoDB db version v5.0.7 (Ubuntu server)


Attachments: GIF File MongoDB-Compass-RegExp-bug.gif    
Issue Links:
Depends
depends on NODE-4603 EJSON serialization breaks on RegExp ... Backlog

 Description   

Problem Statement/Rationale

What is going wrong? What action would you like the Engineering team to take?

Please be sure to attach relevant logs with any sensitive data redacted.

Make it so a poorly written RegExp() query doesn't prevent a query from executing until the tab is re-opened.

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

Make a `RegExp()` query in MongoDB compass and use more than one option (e.g. `'ig'`) and it will break the query and make the "Find" button not respond. Even if you fix the query it will still not respond until you close and re-open the tab and use only one RegExp() string option. 

 

 

Expected Results

What do you expect to happen?

Query should be able to execute, once fixed, without having to close the tab.

Actual Results

What do you observe is happening?

Additional Notes

Any additional information that may be useful to include.



 Comments   
Comment by Benji Asperheim [ 30/Aug/22 ]

I apologize. I meant to tag this as a 'minor' bug, but I'm not sure how to change that now.

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