[COMPASS-6059] Under json view, when edit document contains error, the warning bar won't disappear if click "Cancel" Created: 30/Aug/22  Updated: 29/Oct/23  Resolved: 09/Dec/22

Status: Closed
Project: Compass
Component/s: UI / UX
Affects Version/s: None
Fix Version/s: 1.35.0

Type: Bug Priority: Minor - P4
Reporter: Diancheng Hu Assignee: Rhys Howell
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Version 1.32.5 (1.32.5) on Macbook


Attachments: PNG File Screen Shot 2022-08-24 at 4.30.06 PM.png    
Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Quahog

 Description   

Problem Statement/Rationale

As the title

Recording: https://share.getcloudapp.com/7KukdbXq

 

Steps to Reproduce

Go to any document, click view "json" -> click "edit" icon -> make change to cause error -> see the red bar and click "cancel"

Expected Results

changes should be discarded and the bar will hide

 



 Comments   
Comment by Githook User [ 15/Dec/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(compass-crud): reset contains error check on document json view edit cancel COMPASS-6059 (#3882)
Branch: 1.35-releases
https://github.com/mongodb-js/compass/commit/d510fed1c8e702a7fce90bb1cadeea084ee3bda8

Comment by Githook User [ 12/Dec/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(compass-crud): reset contains error check on document json view edit cancel COMPASS-6059 (#3882)
Branch: aggregations-stage-components
https://github.com/mongodb-js/compass/commit/d510fed1c8e702a7fce90bb1cadeea084ee3bda8

Comment by Githook User [ 09/Dec/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(compass-crud): reset contains error check on document json view edit cancel COMPASS-6059 (#3882)
Branch: main
https://github.com/mongodb-js/compass/commit/d510fed1c8e702a7fce90bb1cadeea084ee3bda8

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