Skip to content

Conversation

@willronchetti
Copy link
Member

  • A small addition to provision some baseline utilities for downloading files in parallel from the portal and from searches
  • TODO: update with patching functionality once data model is in place

@coveralls
Copy link

coveralls commented Sep 29, 2023

Pull Request Test Coverage Report for Build 6355336442

  • 1 of 81 (1.23%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.6%) to 77.096%

Changes Missing Coverage Covered Lines Changed/Added Lines %
dcicutils/ff_utils.py 1 5 20.0%
dcicutils/transfer_utils.py 0 76 0.0%
Totals Coverage Status
Change from base Build 6354871296: -0.6%
Covered Lines: 8479
Relevant Lines: 10998

💛 - Coveralls

auth = get_authentication_with_server(key, ff_env)
get_url = '/'.join([auth['server'], _sls(obj_id)]).rstrip('/') + '/@@download'
response = authorized_request(get_url, auth=auth, verb='GET', allow_redirects=False)
return response.headers['Location']
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this check for a 301?

Copy link
Member Author

Choose a reason for hiding this comment

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

Given the @@download at the end it will throw exception prior either way if it doesn't find it, so not sure there is a huge point (there is no scenario where 301 isn't returned and this code is reached, it would have thrown exception prior to this point)

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