[COMPASS-2094] validation rule doesn't display field value Created: 24/Sep/17  Updated: 10/Jan/24  Resolved: 05/Mar/19

Status: Closed
Project: Compass
Component/s: Document Validation
Affects Version/s: 1.9.0-beta.2
Fix Version/s: 1.18.0

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2017-09-24 05.27.34.png    
Issue Links:
Related

 Description   

I'm looking at existing validation rule on a collection and the rule is

		"options" : {
			"validator" : {
				"a.b" : 1,
				"a.c" : 2
			}
		},

What I see in the UI in Compass is range none none. (Will attach screenshot).



 Comments   
Comment by Massimiliano Marcon [ 05/Mar/19 ]

In 1.18 we introduced a new schema validation experience that completely replaces the old one. The first iteration only includes a smart editor with autocomplete, so this issue is definitely gone away.

Comment by Asya Kamsky [ 24/Sep/17 ]

Just realized that equality to a particular value doesn't seem to be supported by validation rule options.

Couldn't find an existing jira ticket for this... so I'll leave this one, feel free to convert to supporting equality in rules as that's seemingly why the rule isn't displayed correctly.

Supported:

  • exists
  • must not exist
  • type
  • range
  • regex

Missing

  • equals
  • not equals
Comment by Asya Kamsky [ 24/Sep/17 ]

Screenshot of what this validation rule looks like.

Already mentioned in COMPASS-276 that it's also showing incorrect validation level and validation action.

Generated at Wed Feb 07 22:29:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.