[COMPASS-4758] RegEx query saved wrong in "recent" and "favorites" Created: 17/Apr/21  Updated: 29/Oct/23  Resolved: 28/Apr/22

Status: Closed
Project: Compass
Component/s: Query Bar, Query History
Affects Version/s: 1.26.1
Fix Version/s: 1.31.3

Type: Bug Priority: Major - P3
Reporter: Dmitry GG Assignee: Le Roux Bodenstein
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows 10


Attachments: JPEG File buggycompas.jpg     PNG File screenshot-1.png    
Issue Links:
Related
related to COMPASS-3128 Restart changes $regex favorite to in... Closed
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Anemone

 Description   

Problem Description

in search history the regex request saved without quotes for flags. => wrong query by usage from history/favorites

Steps to Reproduce

search for `{something: /regex/i}`

Expected Results

in history there will be `{something: /regex/i}` or `{something: new Regex('regex', 'i'}`

Actual Results

 `{something: new Regex('regex', i}`

flag `i` is not quoted.

 

Additional Notes



 Comments   
Comment by Githook User [ 09/May/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: use mongodb-query-parser 2.4.5 COMPASS-4758 COMPASS-3128 (#3032)

  • use mongodb-query-parser 2.4.5
  • quotes
Comment by Githook User [ 02/May/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: use mongodb-query-parser 2.4.5 COMPASS-4758 COMPASS-3128 (#3032)

  • use mongodb-query-parser 2.4.5
  • quotes
Comment by Githook User [ 02/May/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: use mongodb-query-parser 2.4.5 COMPASS-4758 COMPASS-3128 (#3032)

  • use mongodb-query-parser 2.4.5
  • quotes
Comment by Githook User [ 29/Apr/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: use mongodb-query-parser 2.4.5 COMPASS-4758 COMPASS-3128 (#3032)

  • use mongodb-query-parser 2.4.5
  • quotes
Comment by Githook User [ 28/Apr/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: use mongodb-query-parser 2.4.5 COMPASS-4758 COMPASS-3128 (#3032)

  • use mongodb-query-parser 2.4.5
  • quotes
Comment by Githook User [ 28/Apr/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: use mongodb-query-parser 2.4.5 COMPASS-4758 COMPASS-3128 (#3032)

  • use mongodb-query-parser 2.4.5
  • quotes
Comment by Githook User [ 28/Apr/22 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: use mongodb-query-parser 2.4.5 COMPASS-4758 COMPASS-3128 (#3032)

  • use mongodb-query-parser 2.4.5
  • quotes
Comment by Massimiliano Marcon [ 25/Apr/22 ]

Let's verify also COMPASS-3128

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