Skip to content

Conversation

@TheByronHimes
Copy link
Member

Flattened and organized the CLI/Main/Downloader chain.
Will move on to upload path after this PR because remaining refactoring items are not critical.

@coveralls
Copy link

coveralls commented Oct 21, 2025

Pull Request Test Coverage Report for Build 18720397497

Details

  • 114 of 142 (80.28%) changed or added relevant lines in 8 files are covered.
  • 16 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-1.2%) to 78.644%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ghga_connector/core/downloading/api_calls.py 3 4 75.0%
src/ghga_connector/core/downloading/structs.py 20 21 95.24%
src/ghga_connector/cli.py 0 3 0.0%
src/ghga_connector/core/downloading/downloader.py 13 16 81.25%
src/ghga_connector/core/utils.py 35 55 63.64%
Files with Coverage Reduction New Missed Lines %
src/ghga_connector/cli.py 16 0.0%
Totals Coverage Status
Change from base Build 18650512639: -1.2%
Covered Lines: 1090
Relevant Lines: 1386

💛 - Coveralls

await downloader.download_file(
output_path=file_info.path_during_download, part_size=CONFIG.part_size
)
with handle_download_errors(file_info):
Copy link
Member

Choose a reason for hiding this comment

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

Quick nitpick:
file_id has already been extracted in L. 150, no need to pass the whole object along just to get the ID into the log messages

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yeah you're right, not sure what I saw. I will take it out as part of the next ticket

@TheByronHimes TheByronHimes merged commit 3ac3c52 into feature/big_refactor_GSI-1859 Oct 22, 2025
9 checks passed
@TheByronHimes TheByronHimes deleted the feature/big_refactor/flatten_cli branch October 22, 2025 18:00
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.

4 participants