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

Fix download progress bar #178

Merged
merged 8 commits into from
Oct 23, 2023
Merged

Fix download progress bar #178

merged 8 commits into from
Oct 23, 2023

Conversation

IgorTatarnikov
Copy link
Member

@IgorTatarnikov IgorTatarnikov commented Oct 19, 2023

Before submitting a pull request (PR), please read the contributing guide.

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
Fix the bug with the progress bar when the content-length header is missing.

What does this PR do?
Creates a new function that's called if the content-length header is missing to parse the size from the equivalent 'src' page on GIN.

References

closes #121
closes #177

How has this PR been tested?

The PR was tested locally by downloading several atlases. Existing functionality was checked by running tests. New tests were added to ensure the correct sizes are returned by the new function.

Is this a breaking change?

No

Does this PR require an update to the documentation?

No

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The code has been formatted with pre-commit

@adamltyson
Copy link
Member

pre-commit.ci run

@IgorTatarnikov IgorTatarnikov changed the title Download bug fix Fix download progrss bar Oct 20, 2023
@adamltyson adamltyson changed the title Fix download progrss bar Fix download progress bar Oct 23, 2023
@adamltyson
Copy link
Member

Looks good, thanks @IgorTatarnikov. Would it be possible to add a couple of tests for the exception handling to keep the test coverage up?

Copy link
Member

@adamltyson adamltyson left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @IgorTatarnikov!

@adamltyson adamltyson merged commit 6004359 into main Oct 23, 2023
17 checks passed
@adamltyson adamltyson deleted the download_bug_fix branch October 23, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants