-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
monkey patch services #2193
monkey patch services #2193
Conversation
Hello @jaymedina! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-01-26 17:23:50 UTC |
@jaymedina - I've converted this to a draft PR, please change it back once it's out of the WIP state and ready for review. |
Codecov Report
@@ Coverage Diff @@
## main #2193 +/- ##
==========================================
+ Coverage 62.69% 62.70% +0.01%
==========================================
Files 131 131
Lines 16822 16828 +6
==========================================
+ Hits 10546 10552 +6
Misses 6276 6276
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.
This looks good to me. I left a couple minor comments.
Another very minor suggestion is to update the comments on observations.py
lines 176 and 330 to mention ObservationsClass.caom_filtered_position
instead of Mast.Caom.Filtered.Position
Is there any thought to having this this accept environment variables as configuration overrides? If we allowed for environment variables it would make it much easier to reconfigure without the need to make code changes to people's scripts and potentially easier to test, as well. |
Some of these attributes are "built" off attributes that are inherited from other imports, so I'm not sure if that would make things cleaner. For example |
Will need to patch the |
I've addressed all previous threads and installed the final "hooks" that the STScI devs need for unit testing patchwork. I've been running my unit tests successfully off this branch, so I'm going to mark this as Thanks for taking some time out to review this already @bsipocz @tomdonaldson @dr-rodriguez and @falkben , feel free to send back any further comments. |
With the OK from you @bsipocz I'd like to do a rebase and rerun the CI. I already created a backup branch just in case. |
@jaymedina - please go ahead. I'll do a quick review afterwards. |
974a7db
to
0f30b74
Compare
The latest readthedocs build is failing with an error from another module called
[...]
I'm looking at the most recently merged PR and think it might be the source of the bug: #2260 I don't see any CI tests, just the code coverage report. Side note:
|
Hmm, thanks for catching this. That PR you refer has a fully passing CI prior the merge, I'm not sure what went wrong. Nevertheless, it's indeed unrelated to this one. |
There is no such error anywhere in the documentation build log. See #2262 for the successful fix. |
I've received that error when building the docs locally in this branch, and a freshly checked out branch from main. Regarding #2262, how is that PR related to this? |
Some of the cached files in your
It fixes the documentation build. |
ba567be
to
0bd695b
Compare
Hmm unfortunately that didn't work @eerovaher . I removed Edit: Now receiving this warning:
|
0bd695b
to
8042ab0
Compare
Deleting the |
(unrelated to the PR, but I think good rule of thumbs: If you run into weird issues with docs build/tests, running a |
8042ab0
to
dc26a3e
Compare
Just rebased on the new merged changes and readthedocs build is working again, thanks @eerovaher & @bsipocz ! CI checks are passing and unit tests are passing (remote included). I think this PR is ready for a final review and merge. Thanks in advance. |
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 to me. There is one nitpick (no need to address), and a big picture item, that may point beyond this PR anyway.
I also wonder whether it would be possible to squash a few back and forth commits together to form the logical blocks (e.g. squash formatting/cleanup ones into one, etc.).
dc26a3e
to
903cb97
Compare
903cb97
to
2a18971
Compare
2a18971
to
64abfa6
Compare
64abfa6
to
b6fee48
Compare
…caom_filtered_position and fixing indentation
0f93106
to
45d7ab8
Compare
Thanks @jaymedina! |
To support our back-end unit testing that will involve patching the
service
variables currently hard-coded in several mast scripts, I'm requesting to haveservice
call static class attributes that live outside of the methods, which allows the STScI developers to patch these as necessary for our unit tests.Please note: This pull request is time-sensitive, and should take precedent over the other pull requests I have open for astroquery.
I aim to have this ready and merged before the end of November.Update: After a shift of the scope for this year, we've changed the timeline to have it ready by early December or beginning of January.