-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.5.0-beta.0
-
Component/s: Document Validation, UI / UX
-
None
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