User Story
As a Compass user
I want to see if existing documents match or do not match the validation rules I am adding
So that I can understand whether I am adding the right rules and whether my existing data would need some cleanup
Acceptance Criteria
- When I am specifying schema validation rules for a collection that already contains documents, I want to see a sample of documents that would match and would not match my validation rules
- The sampling of documents should happen with a reasonable level of performance
- If feasible with reasonable effort, the sampling would happen while I am editing the rules and not after saving, but this is not a strict requirement.
- If sampling is a long operation, the UI will not freeze or be blocked. Instead, we should display some sort of loading indicator in the area where the sample documents would appear.
If feasible, where we show samples of documents that do not match the validation rules, we should highlight the fields that do not match
|