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
Raise warning not error on schema version mismatch #718
Conversation
@chidauri would you be willing to modify the tests to check that the warning is raised? Here's an example of how we check for a warning in a different test: |
Codecov Report
@@ Coverage Diff @@
## master #718 +/- ##
==========================================
+ Coverage 97.64% 97.64% +<.01%
==========================================
Files 118 118
Lines 10247 10249 +2
==========================================
+ Hits 10006 10008 +2
Misses 241 241
Continue to review full report at Codecov.
|
@rwedge python2.7 test is failing, i am not sure how is that related to my change? and how to format changelog.rst? Thanks. |
docs/source/changelog.rst
Outdated
@@ -9,12 +9,13 @@ Changelog | |||
* Fixed entity set deserialization (:pr:`720`) | |||
* Added error message when DateTimeIndex is a variable but not set as the time_index (:pr:`723`) | |||
* Changes | |||
* Raise warning and not error on schema version mismatch (:pr: `718`) |
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.
Remove the space between ":pr:" and "718
"
featuretools/utils/gen_utils.py
Outdated
@@ -112,15 +113,15 @@ def check_schema_version(cls, cls_type): | |||
if c_num > s_num: | |||
break | |||
elif c_num < s_num: | |||
raise RuntimeError(error_text_upgrade) | |||
warnings.warn(error_text_upgrade) |
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.
We should add a break
after this warning so that we do not continue to iterate after the warning
Also, let's rephrase these warnings. Let's remove the "unable to load" sentence from both warnings and add "Attempting to load . . ." at the end of each warning. |
@chidauri the python2.7 failure was unrelated. I re-triggered the tests and it passed the second time. |
@rwedge is it ok now? |
@chidauri looks good! I went ahead and changed the |
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.
@chidauri thank you for contributing!
Pull Request Description
Fixes #698 .
After creating the pull request: in order to pass the changelog_updated check you will need to update the "Future Release" section of
docs/source/changelog.rst
to include this pull request.