Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4257

Documents list is blank when validation error should be shown

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: CRUD
    • Labels:
      None
    • Not Needed

      • 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

            Assignee:
            Unassigned Unassigned
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: