-
Notifications
You must be signed in to change notification settings - Fork 325
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
Add load_from_json
and save_to_json
to SingleTableMetadata
#908
Add load_from_json
and save_to_json
to SingleTableMetadata
#908
Conversation
Codecov Report
@@ Coverage Diff @@
## V1.0.0.dev #908 +/- ##
==============================================
+ Coverage 69.18% 69.48% +0.29%
==============================================
Files 39 39
Lines 2921 2949 +28
==============================================
+ Hits 2021 2049 +28
Misses 900 900
Continue to review full report at Codecov.
|
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.
LGTM!
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.
One thing concerning constraints, but the rest looks good!
'class and version.' | ||
) | ||
|
||
return cls._load_from_dict(metadata) |
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.
The constraint base class has to_dict
and from_dict
methods that I think we should use here. When someone loads from a json, we should load the constraint instances using that class method, and when they save to a json we should use the constraint's to_dict
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.
LGTM! Thanks for making the changes!
67e9a2b
to
6362a86
Compare
Resolves #874