[COMPASS-4347] Inserting the empty input in JSON Mode shows Inserting Document message Created: 10/Jul/20  Updated: 16/Sep/21  Resolved: 12/Aug/20

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.21.2
Fix Version/s: No version

Type: New Feature Priority: Minor - P4
Reporter: Tanna Matan Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Inserting empty input.png    
Documentation Changes: Not Needed

 Description   

Problem Statement: Inserting the empty input in JSON mode shows the message "Inserting Document" which may confuse the Compass user as actually no document is being inserted.

Reproduction Steps:
1. On the Documents menu of a collection, click ADD DATA, select Insert Document.
2. With the empty input, click INSERT.
3. Compass UI shows the message "Inserting Document".

Possible Improvement:

  • Compass should not show "Inserting Document" for the empty input.
  • We see that Compass has the validation handler for the JSON document format. It would be best to also validate if the input is empty and provide a meaningful message to the user. OR, if the input is empty, the INSERT button should be greyed out.

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