Grouping expectations by importance level #7758
pcontrerasnun
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to propose a new feature that consists of dividing your expectations into several groups according to their importance/severity. That is, there will be critical expectations that if they fail they should be reviewed immediately, and others that would be more of a warning and that if they occur they would not be so urgent. This way, you can prioritize the most important issues and avoid false alarms or unnecessary alerts.
We were thinking of including this info in the meta section of each expectation within the expectation suites. For example:
{ "expectation_type": "expect_column_values_to_be_in_type_list", "kwargs": { "column": "NAME", "type_list": ["String"] }, "meta": { "severity": "critical" } }But then actions such as MicrosoftTeamsNotificationAction, SlackNotificationAction would need to support this. Maybe with a parameter
notify_severity. For example:notify_severity: 'critical'would only trigger a notification if 1 or more critical expectations have failed, but won't trigger if warning expectations have failed.notify_severity: ['critical', 'warning']would trigger a notification if 1 or more critical or warning expectations have failedAll reactions