Skip to content
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

Download hosted files to tmp and move to dropbox when uploading #6159

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

masaball
Copy link
Contributor

@masaball masaball commented Jan 6, 2025

Related issue: #6129 (may also take care of #6152 but that needs to be more thoroughly tested)

Internet hosted files such as google drive or sharepoint were being downloaded multiple times during processing. By creating a tempfile and moving it into the dropbox, this should remove or at least minimize excess downloads.

Interntet host files such as google drive or sharepoint were being
downloaded multiple times during processing. By creating a tempfile and
moving it into the dropbox, this should remove or at least minimize
excess downloads.
@masaball masaball marked this pull request as ready for review January 7, 2025 21:20
@masaball
Copy link
Contributor Author

masaball commented Jan 7, 2025

Failing test is an unrelated flaky test for playlists

app/services/file_locator.rb Outdated Show resolved Hide resolved
app/services/file_mover.rb Show resolved Hide resolved
This commit also includes some tightening up of the test suite and
removing an unneeded `File#rewind` call from `FileLocator#local_file`.
cjcolvar
cjcolvar previously approved these changes Jan 8, 2025
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I only had one small suggestion to the test organization but it's not a blocking thing so I'm approving this PR. Feel free to make the change or not.

spec/services/file_mover_spec.rb Outdated Show resolved Hide resolved
@masaball masaball merged commit 283edf4 into develop Jan 10, 2025
2 checks passed
@masaball masaball deleted the single_download branch January 10, 2025 15:45
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.

2 participants