[COMPASS-6470] Recent and favourited queries are not serialized correctly Created: 31/Jan/23  Updated: 11/Jul/23  Resolved: 11/Jul/23

Status: Closed
Project: Compass
Component/s: Query History
Affects Version/s: 1.35.0
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Sergey Petushkov Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Attachments: PNG File screenshot-1.png    
Issue Links:
Duplicate
is duplicated by COMPASS-6356 "RegExp" query is changed in Recents ... Closed
is duplicated by COMPASS-6626 Recent/Favorite Filter Queries - Stri... Closed
Related
related to COMPASS-7008 `$regex` shows as `pattern` in Querie... Open
Documentation Changes: Not Needed
Sprint: Up for triaging

 Description   

See HELP-41885. We do serialization when query is persisted in a EJSON format, but after queries are loaded and passed to query bar, we convert them back and forth with mongodb-query-parser, the regexp value is lost due to the package not being able to understand and handle the BSONRegExp type correctly



 Comments   
Comment by Rhys Howell [ 11/Jul/23 ]

Closing as duplicate of COMPASS-7008

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