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

deprecate download, replace with sda-download #427

Merged
merged 9 commits into from
Aug 13, 2024

Conversation

MalinAhlberg
Copy link
Member

@MalinAhlberg MalinAhlberg commented Aug 7, 2024

Related issue(s) and PR(s)
This PR closes #398 .

Description

  • download (eg ./sda-cli download <urls_file>) is deprecated and removed
  • functionality for getting datasetsize is deprecated and removed ( eg ./sda-cli datasetsize <urls_file>) as it was dependent on the now deprecated function for downloading files with urls_file.
  • sda-download (./sda-cli sda-download) renamed to download
  • references and documentation updated accordingly

How to test

  • check that all tests run
  • check that the documentation is correct
  • possibly, verify that downloading files work, eg
    • ./sda-cli download -config <configuration_file> -dataset-id <datasetID> -url <download-service-URL> <filepath>
    • ./sda-cli download -pubkey <public-key-file> -config <configuration_file> -dataset-id <datasetID> -url <download-service-url>
    • ... and other use cases in the README

@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 43.10954% with 161 lines in your changes missing coverage. Please review.

Project coverage is 39.29%. Comparing base (69e2752) to head (4faf382).

Files Patch % Lines
download/download.go 43.72% 139 Missing and 18 partials ⚠️
list/list.go 0.00% 2 Missing ⚠️
main.go 0.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #427      +/-   ##
==========================================
- Coverage   41.24%   39.29%   -1.96%     
==========================================
  Files          13       11       -2     
  Lines        2051     1891     -160     
==========================================
- Hits          846      743     -103     
+ Misses       1084     1036      -48     
+ Partials      121      112       -9     
Flag Coverage Δ
unittests 39.29% <43.10%> (-1.96%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MalinAhlberg MalinAhlberg requested a review from a team August 7, 2024 12:28
@MalinAhlberg MalinAhlberg marked this pull request as ready for review August 7, 2024 12:29
Copy link
Contributor

@nanjiangshu nanjiangshu left a comment

Choose a reason for hiding this comment

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

Nice work!

@MalinAhlberg MalinAhlberg added this pull request to the merge queue Aug 13, 2024
Merged via the queue into main with commit a3a695b Aug 13, 2024
6 checks passed
@MalinAhlberg MalinAhlberg deleted the feat/deprecate-download branch August 13, 2024 06:55
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.

Deprecate the current download function
4 participants