[COMPASS-4257] Documents list is blank when validation error should be shown Created: 21/Apr/20  Updated: 29/Oct/23  Resolved: 11/Mar/22

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

Type: Bug Priority: Major - P3
Reporter: Alena Khineika Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-03-11 at 10.54.40 AM.png     PNG File Screen Shot 2022-03-11 at 10.57.19 AM.png     PNG File Screenshot 2020-04-21 at 10.19.10.png    
Documentation Changes: Not Needed

 Description   
  • For the collection that has `Name` field open validation tab
  • On the validation tab set validation action `Error` and validation level `Moderate`.
  • Set the following validation body:

 

{
  $jsonSchema: {
    bsonType: 'object',
    required: [
      'name'
    ],
    properties: {
      name: {
        bsonType: 'string',
        description: 'must be a string and is required'
      }
    }
  }
}

 

  • Go to the documents tab and insert the following document using JSON mode: `{ "name": "444" }` 
  • Use `{"name": "444"}` filter to find this document in documents list
  • Try to modify this document in JSON mode and replace `name` field name with `test` field name
  • Try to save changes

Expected result: the validation error should be shown
Actual result: the documents list is blank



 Comments   
Comment by Rhys Howell [ 11/Mar/22 ]

Wasn't able to reproduce (screenshot of error encountered attached). I'm thinking this was fixed at some point. Using compass data sets connection -> test.planets

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