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

Doc validation default to error/strict instead of warning/off and add info tooltip links

      Compass defaults to a validation action of "warning" and validation level of "off". This is counter the MongoDB default of error/strict.

      When people add validation rules, they will expect them to be active but these defaults effectively turn them off. If sticking with these defaults then it would be good to show a warning that the rules you've just added aren't being enforced.

      Also, it's not obvious what these fields actually mean (e.g. that warnings go to the log file and that Moderate allows documents to break the rules when modifying an existing document. Some tips on this pane would be useful.

      Validation Level Infotip:
      https://docs.mongodb.com/v3.2/core/document-validation/#existing-documents
      Validation Action Infotip:
      https://docs.mongodb.com/v3.2/core/document-validation/#accept-or-reject-invalid-documents

      Tasks for this ticket:

      • Set the defaults of Validation Level and Action to error/strict as per docs
      • Add info sprinkles to the docs pages

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.morgan@mongodb.com Andrew Morgan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: