[COMPASS-2884] Make agg pipeline syntax error messaging more helpful when authoring Created: 26/May/18  Updated: 27/Oct/23  Resolved: 13/Nov/20

Status: Closed
Project: Compass
Component/s: Aggregation pipeline, Compass
Affects Version/s: None
Fix Version/s: 1.22.0

Type: Story Priority: Major - P3
Reporter: Grigori Melnik (Inactive) Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File MongoDB_Compass_Beta_unintuitive_error_message.png    
Issue Links:
Related
is related to COMPASS-3069 For a developer, aggregation pipeline... Closed
Story Points: 1
Documentation Changes: Not Needed

 Description   

This ticket could be a collection of suggestions.

1) when multiple match criteria are specified and a comma is missing, I'd like an error message to say "a comma required" as opposed to "Expected [ or Aggregation stage". See screenshot



 Comments   
Comment by Massimiliano Marcon [ 13/Nov/20 ]

Client-side validation is disabled, now we show the server error which is more helpful.

Comment by Lucas Hrabovsky (Inactive) [ 05/Feb/19 ]

Bouncing this against Ace's JS validator should solve this.

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