[COMPASS-6356] "RegExp" query is changed in Recents to "pattern" Created: 07/Dec/22  Updated: 21/Feb/23  Resolved: 21/Feb/23

Status: Closed
Project: Compass
Component/s: Query History
Affects Version/s: 1.31.3, 1.34.1
Fix Version/s: No version

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

Attachments: PNG File compass-regexp-0.png     PNG File compass-regexp-1-1.png     PNG File compass-regexp-3-1.png    
Issue Links:
Backports
backported by COMPASS-3128 Restart changes $regex favorite to in... Closed
Duplicate
duplicates COMPASS-6470 Recent and favourited queries are not... Closed
Documentation Changes: Not Needed

 Description   

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

  1. Open a collection tab in Compass.
  2. Execute a query such as: {name: RegExp('bob', 'i')}
  3. In Recents, you can see the query. It is correct.
  4. Close the collection tab.
  5. Open the collection tab again.
  6. 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'  }
}

 



 Comments   
Comment by Sergey Petushkov [ 21/Feb/23 ]

Closing in favor of COMPASS-6470

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