[COMPASS-5928] Aggregation Pipeline tab erases stages and shows "An error occurred while rendering AggregationsPlugin: Line 4: Unexpected token ILLEGAL" error Created: 30/Jun/22  Updated: 27/Oct/23  Resolved: 18/Oct/22

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: 1.32.2
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Felicia Hsieh Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

macos 12.3.1


Attachments: PNG File Screen Shot 2022-06-30 at 3.09.42 PM.png     PNG File image-2022-06-30-14-52-26-163.png    
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

What is going wrong? What action would you like the Engineering team to take?

Please be sure to attach relevant logs with any sensitive data redacted.

Recovery from Aggregation pipeline editing could be more graceful.

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

Example documents were like the following but with different string dates.

{ _id: 1,| |lastName: 'Smith',| |firstName: 'Chris',| |lastBilledDate: '2022-05-02',| |dateRecorded: '2022-05-08' }

 

Had 2 pipeline aggregation stages.

1st stage was: 

{{{ $match:{ $expr:{ $gte:["$dateRecorded", "$lastBilledDate"] }} }}}

2nd stage was being edited with the goal of changing to either $group or $count. Screen erased content, got the error message, and there is no "Back", "Undo", or some way to retrieve the previous state.

"An error occurred while rendering AggregationsPlugin: Line 4: Unexpected token ILLEGAL"

Expected Results

What do you expect to happen?

Allow me to correct the error in the pipeline or continue editing my existing aggregation pipeline. Content should remain the same.

It was not clear what was the keypress or change that prompted this error.

Errors in aggregation pipeline should not erase content (stages).

Actual Results

What do you observe is happening?

Previous state (Agg pipeline edit mode) was erased and only error is displayed.

Switching to different tabs and returning to Aggregation tab does not return to "clean" Aggregation Pipeline screen. Has no effect.

Only clicking the database name in left-hand menu, then clicking "Aggregations" tab returns me back to where I was.

Additional Notes

Any additional information that may be useful to include.

Ctrl-z / Undo and Ctrl-y / Redo command would be a nice feature.


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