[COMPASS-5205] mongodb-query-parser incorrectly returns a blank string for invalid filters Created: 19/Oct/21  Updated: 24/Aug/23

Status: Open
Project: Compass
Component/s: Query Bar, Tech debt
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Le Roux Bodenstein Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: FY24Q3-candidate
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates COMPASS-5689 ejson-shell-parser: throw more aggres... Closed
Story Points: 3

 Description   

Things like { i: $} confuses queryParser and ultimately it sets filter to '' whereas it has to be a {} (if valid) or false (if invalid). This breaks packages/compass-query-bar/src/stores/query-bar-store.js

See https://github.com/mongodb-js/compass/blob/3a1f76ca6ceef9f7e5fbcbde8aa23f21c0758c21/packages/compass-query-bar/src/stores/query-bar-store.js#L398-L400


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