Skip to content

deprecate download, replace with sda-download#427

Merged
MalinAhlberg merged 9 commits intomainfrom
feat/deprecate-download
Aug 13, 2024
Merged

deprecate download, replace with sda-download#427
MalinAhlberg merged 9 commits intomainfrom
feat/deprecate-download

Conversation

@MalinAhlberg
Copy link
Copy Markdown
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

@MalinAhlberg MalinAhlberg force-pushed the feat/deprecate-download branch from 1151d9c to 26f6e18 Compare August 7, 2024 09:57
@codecov-commenter
Copy link
Copy Markdown

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 force-pushed the feat/deprecate-download branch from 8a6cfa9 to 4faf382 Compare August 7, 2024 12:17
@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
Copy Markdown
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
@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