-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: 1.31.3, 1.34.1
-
Component/s: Query History
-
None
-
Not Needed
Problem Statement/Rationale
After closing the tab of a collection, when I view a recent RegExp query in Recents, it is transformed into a pattern query.
Steps to Reproduce
- Open a collection tab in Compass.
- Execute a query such as: {name: RegExp('bob', 'i')}
- In Recents, you can see the query. It is correct.
- Close the collection tab.
- Open the collection tab again.
- In Recents, the query has been changed from a RegExp query to a pattern query.
Expected Results
The query should not change.
Actual Results
The query becomes:
{
name: {
pattern: 'bob',
options: 'i'
}
}
- backported by
-
COMPASS-3128 Restart changes $regex favorite to invalid RegExp favorite
- Closed
- duplicates
-
COMPASS-6470 Recent and favourited queries are not serialized correctly
- Closed