-
Notifications
You must be signed in to change notification settings - Fork 603
[FR] Added Schema Check for Data View ID and Index #3830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Added Schema Check for Data View ID and Index #3830
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, testing looks fine as well!
Double checked we had no existing rules leveraging this so no further changes required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manual Testing from the branch Looks good 🟢
(cherry picked from commit ec6038b)
(cherry picked from commit ec6038b)
(cherry picked from commit ec6038b)
(cherry picked from commit ec6038b)
(cherry picked from commit ec6038b)
(cherry picked from commit ec6038b)
Issues
#3817
Summary
This PR adds a Schema check for
QueryRuleDatathat checks to make sure only Index or Data View ID are set for a given rule and not both. Currently we only support rules using one or the other and this will catch cases where rules may inadvertently reference both.Testing
Use the rule from #3510, and an index field so that it has both the
indexanddata_view_idset.Example Rule
Now run
view-ruleand check to make sure there is now a validation error.Validation Error
Example Run