Skip to content

Conversation

@kojix2
Copy link
Member

@kojix2 kojix2 commented Aug 14, 2025

Fix #4
Fix #6
Fix #7

@kojix2 kojix2 requested a review from Copilot August 14, 2025 22:20
Copy link
Contributor

Copilot AI left a 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.

@kojix2 kojix2 merged commit 5d8d7e6 into red-data-tools:main Aug 14, 2025
12 checks passed
kou pushed a commit to red-data-tools/red-datasets that referenced this pull request Aug 15, 2025
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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backport GH_TOKEN support Backport fallback by NotFound Backport POST support

2 participants