-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add serialize qc eval(s) helper method #184
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
Conversation
- Added _add_qc_evaluation_url property for QC evaluation endpoint - Implemented add_qc_evaluation() method to sign and send POST requests - Added unit tests for success and failure cases - Updates import lines to follow isort standards
- Allow users to provide `qc_contents` directly when adding a QC evaluation - Include `data_asset_id` in the `qc_contents` dict for post requests - Update pydantic upper bound handling - Restore isort import recommendations
- Implement serialize_qc_evaluations to serialize QCEvaluation objects and submit them to MetadataDbClient. - Add unit tests covering: * Single QCEvaluation success * List of QCEvaluations success * Invalid data_asset_id error (simulated 404)
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.
Overall looks good! Requesting some changes regarding redundant code and cleaning up the payload.
- Renamed helper to `add_qc_evaluations_to_docdb` to clarify that it serializes and submits QC evaluations to DocDB. - Updated serialization to exclude None values for smaller payloads. - Removed redundant for-loop; MetadataDbClient.add_qc_evaluation now handles both single and multiple evaluations.
|
Thanks @johendrickson, looks great! @dbirman do you have any feedback for this helper before we merge? |
dbirman
left a comment
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.
Awesome, looks good to me!
Closes #181
add_qc_evaluations_to_docdbto serialize QCEvaluation objects and submit them to MetadataDbClient.