[COMPASS-3128] Restart changes $regex favorite to invalid RegExp favorite Created: 13/Sep/18  Updated: 29/Oct/23  Resolved: 28/Apr/22

Status: Closed
Project: Compass
Component/s: Aggregation pipeline, Compass, Query History
Affects Version/s: 1.15.1
Fix Version/s: 1.31.3

Type: Bug Priority: Major - P3
Reporter: Brian Blevins Assignee: Le Roux Bodenstein
Resolution: Fixed Votes: 1
Labels: history, regex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2018-09-13-18-12-55-503.png     PNG File invalid_regexp_after_compass_restart.png     PNG File valid_regex_as_favorite_before_restart.png    
Issue Links:
Backports
backports COMPASS-6356 "RegExp" query is changed in Recents ... Closed
Related
related to COMPASS-3490 "new Date()" support for aggregation ... Closed
is related to COMPASS-4758 RegEx query saved wrong in "recent" a... Closed
Documentation Changes: Not Needed
Sprint: Iteration Anemone

 Description   

After saving a valid $regex query as a favorite (likely recent as well) and then restarting Compass, the query is converted to a RegExp() query that is rejected by Compass.

Initially, the query is saved as a favorite that can be reused, see the screenshot: valid_regex_as_favorite_before_restart.png.

After restarting Compass, that same query is now in RegExp() format (instead of $regex) and no longer considered valid by Compass. See the screenshot: invalid_regexp_after_compass_restart.png.



 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 Jeffrey Mayer [ 14/Sep/18 ]

I have this issue with recent history. I belive there is a mistype- your last sentence should say After restarting Compass, that same query is NOW in RegExp() and not valid.

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