User Story
As a Compass user
I want to see, create and modify schema validation rules for my collections
so that I can guarantee that my data will always be in the shape I expect
Acceptance Criteria
- In Compass, when I select a collection I can access a Validation screen for that collection
- The Validation screen displays the validation rules currently associated with the collection
- By validation rules, we mean the object associate to the validator property
- The Validation screen allows the user to edit and save validation rules
- When there are no validation rules for the collection, there is a CTA for the user to start taking advantage of schema validation and a link pointing to the documentation
- When I access the validation screen for a collection with validation rules, all the rules are displayed, no matter if they are written with query expressions or as JSON Schema
- I can edit rules both as query expressions as well as in JSON Schema
- When I attempt to save a rule and the rule is correctly saved, I want to see a confirmation message
- When I attempt to save a rule and the rule cannot be saved or there is an error, I want to see an error message
- This includes conflicts between rules detected by the server
- Validations does not apply to read-only collections/views
|