-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Refactor ESO authentication and download #2681
Merged
Merged
Changes from 26 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
7a1e1e4
refactor eso data retrieval using alma's 'download_files'
szampier 8128eb4
fix authentication, remove unused method
szampier 279a920
uncompress files with external command because Python's gzip does not…
szampier 454f02d
reimplement file download so we don't need to send two requests for e…
szampier 8f1827a
use token authentication for download
szampier b18c286
re-authenticate when token expires
szampier 51d7ffc
remove argument `request_all_objects`
szampier f904533
rename argument continuation to overwrite and implement this feature
szampier ac2a3ea
fix r-string, fix test
szampier b12d5d7
create destination directory
szampier 8190085
add logs, update doc
szampier 1a1fdc2
annotate modified methods with type hints
szampier b3313bd
fix service name for keyring, update doc
szampier 45e9b0c
fix log severity
szampier a139625
update eso doc
szampier 2d631ec
attempt to fix doctest
szampier a367ca2
implement retrieval of associated calibration files
szampier 42c8885
rebase `MockResponse`
szampier 65af273
parse calselector multipart response, test calselector
szampier b4338ac
fix filename for windows
szampier 0e53440
add new test data files to setup_package.py
szampier 2d26f0e
batch calselector requests
szampier 4bb3f5a
fix code style errors
szampier 82f8925
download to .part file
szampier bc634dc
sanitize Content-Disposition's filename (rfc6266#section-4.3)
szampier 1b927ee
Update ChangeLog
szampier 8a46168
implement review comments
szampier 43a5940
fix `test_each_instrument_SgrAstar` and try to increase coverage
szampier 5ccd28d
add test
szampier 006aca0
skip `test_unzip` on Windows
szampier f8ef983
add test to increase coverage
szampier a1efe74
keep original API and add deprecation warning for removed arguments
szampier 9ea4138
increase test coverage
szampier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
353 changes: 353 additions & 0 deletions
353
astroquery/eso/tests/data/FORS2.2021-01-02T00_59_12.533_raw2raw.xml
Large diffs are not rendered by default.
Oops, something went wrong.
719 changes: 719 additions & 0 deletions
719
astroquery/eso/tests/data/FORS2.2021-01-02T00_59_12.533_raw2raw_multipart.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"access_token": "some-access-token", | ||
"id_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Nzg2Mjg5NTl9.qqKrC1MesQQmLtqsFOm2kxe4f_Nqo4EPqgpup30c6Mg", | ||
"token_type": "bearer", | ||
"expires_in": 28800, | ||
"scope": "" | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
FYI: We list the number of the PR in the changelog, not the issues fixed. I'll fix this up when cleaning up the changelog for release