-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.38.2
-
Component/s: Query, Query Bar, Query History
-
None
-
Environment:OS: macOS
node.js / npm versions:
Additional info:
-
3
-
Iteration Dobsonian
-
Not Needed
Problem Statement/Rationale
$regex item in query is kept as pattern in query history. 'pattern' doesn't work.
The query needs to be kept without any change.
Steps to Reproduce
How could an engineer replicate the issue you’re reporting?
- I created a query in the `Filter` window. The query contained a $regex key. the query works as expected.
- I clicked on the clock icon and found the query in the 'Recents' list
- The query in the list does not contain '$regex'. Instead there is 'pattern' (with the specified value) and 'options' (with empty string).
- When clicking on this query, and applying it, no document is found.
Expected Results
There should be `$regex` in the recent query.
Actual Results
There is 'pattern' in the recent query, and this query doesn't retrieve any document.
Additional Notes
Any additional information that may be useful to include.
- is duplicated by
-
COMPASS-7649 Regex Searches not being saved correctly in Compass
- Closed
-
COMPASS-7979 $regex queries are incorrectly saved in query history
- Closed
-
COMPASS-7090 Parse regex ejson to valid query
- Closed
- is related to
-
COMPASS-6470 Recent and favourited queries are not serialized correctly
- Closed