-
Notifications
You must be signed in to change notification settings - Fork 44
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
Move exceptions and warnings out of server code and separate deps #1405
Conversation
2c8a3dd
to
d7e708f
Compare
d7e708f
to
95b5538
Compare
95b5538
to
73adc45
Compare
Codecov Report
@@ Coverage Diff @@
## master #1405 +/- ##
==========================================
- Coverage 91.46% 91.35% -0.11%
==========================================
Files 72 74 +2
Lines 4369 4374 +5
==========================================
Hits 3996 3996
- Misses 373 378 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
- Run filtertransformer tests alongside each server backend
6d618f2
to
32adfc2
Compare
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.
Do we want to keep optimade/server/exceptions.py and optimade/server/warnings.py indefinitively ? Otherwise it may be good to add a deprecation warning.
Codecov reports that some pieces of code are now untested.
Are all tests still executed properly ? Or is this because codecov still uses the old version of ci.yml ?
The following files still have references to the old file locations.
Is this on purpose to test the redirect to the new file location?
tests/server/middleware/test_api_hint.py line 106,139 and 162.
tests/server/middleware/test_warnings.py line 9 and 39
tests/server/query_params /test_sort.py line 132
tests/filterparser/test_filterparser.py line 8
tests/server/middleware/test_api_hint.py line 6
tests/server/middleware/test_versioned_url.py line 6
Codecov is reporting that 5 lines have been added that are not being tested, and as far as I can see these are just the lines with new import guards in place.
I left all of the Regarding deprecating the old imports and adding deprecation warning, I guess we could, but I'm not sure its super worth it. The cost of just maintaining this particular backwards compatibility is currently zero, so unless that changes I don't think we need to worry about it. |
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.
Thanks for the clarification.
Thanks for the review! I guess I'm gearing up to do a release at some point soon so I can test out using e.g., just the client or just the models in other projects. Feel free to shout when you want another review on your PRs (on here or Slack). |
Yes, we need a release now the references to heroku are outdated. You can do it without waiting for my PR's. |
Closes #1403.
Still to-do: