-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[MAINTENANCE] Add suite_name
to ExpectationSuiteValidationResult
#9677
Conversation
✅ Deploy Preview for niobium-lead-7998 canceled.
|
success: bool, | ||
results: list[ExpectationValidationResult], | ||
suite_name: str, |
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.
These should be guaranteed fields - what is a result if we don't have results, an origin suite, and a success metric?
evaluation_parameters = fields.Dict() | ||
statistics = fields.Dict() | ||
meta = fields.Dict(allow_none=True) | ||
id = fields.UUID(required=False, allow_none=True) | ||
checkpoint_name = fields.String(required=False, allow_none=True) |
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.
This was wrong - it might be in meta but shouldn't be at the top level
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9677 +/- ##
===========================================
- Coverage 82.55% 82.54% -0.01%
===========================================
Files 511 511
Lines 46383 46381 -2
===========================================
- Hits 38293 38287 -6
- Misses 8090 8094 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -613,7 +610,7 @@ def get_failed_validation_results( | |||
) -> ExpectationSuiteValidationResult: | |||
validation_results = [result for result in self.results if not result.success] | |||
|
|||
successful_expectations = sum(exp.success for exp in validation_results) | |||
successful_expectations = sum(exp.success or False for exp in validation_results) |
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.
why is this required? do some ValidationResults have a None
value for success
?
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.
yeah we'd need a separate effort to clean up the child ExpectationValidationResult
. I'll follow up
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 reasonable 👍
invoke lint
(usesruff format
+ruff check
)For more information about contributing, see Contribute.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!