-
Notifications
You must be signed in to change notification settings - Fork 6
Backport downloader features from red-datasets #10
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
Conversation
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.
Pull Request Overview
This PR backports downloader features from red-datasets, introducing support for fallback URLs, caching improvements, and enhanced HTTP functionality. The changes address multiple issues (#4, #6, #7) by extending the downloader's capabilities while maintaining backward compatibility.
- Adds support for fallback URLs to handle download failures
- Implements HTTP POST method support with parameters and GitHub token authentication
- Refactors caching logic and improves error handling
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| lib/remote_input/downloader.rb | Core implementation adding fallback URL support, HTTP POST functionality, improved caching logic, and GitHub token authentication |
| test/test-downloader.rb | Comprehensive test suite covering new initialization options, caching behavior, and fallback URL functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Correct the elapsed time comparison for lock file validation. Lock files should be considered valid when they are recent (< 10 seconds), not when they are old (> 10 seconds). - Before: Lock files older than 10 seconds were considered valid - After: Lock files newer than 10 seconds are considered valid Originally suggested in a Copilot [review](red-data-tools/red-remote-input#10 (comment))
Fix #4
Fix #6
Fix #7