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

Enable list of absolute urls in s3-to-dc #584

Merged
merged 12 commits into from
Nov 16, 2023
Merged

Enable list of absolute urls in s3-to-dc #584

merged 12 commits into from
Nov 16, 2023

Conversation

Ariana-B
Copy link
Contributor

@Ariana-B Ariana-B commented Oct 27, 2023

  • Make it so that s3-to-dc no longer requires a glob for the uri, enable passing multiple uris, and make product argument optional.
  • More informative error for empty doc stream by using click.ClickException instead of click.Abort, which doesn't support a custom error message.
  • Rename test environment to odc-tools-tests

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (2d20db7) 76.06% compared to head (7ba48f0) 76.52%.

Files Patch % Lines
apps/dc_tools/odc/apps/dc_tools/s3_to_dc.py 77.27% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #584      +/-   ##
===========================================
+ Coverage    76.06%   76.52%   +0.46%     
===========================================
  Files           41       41              
  Lines         2954     2978      +24     
===========================================
+ Hits          2247     2279      +32     
+ Misses         707      699       -8     

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

@Ariana-B Ariana-B requested a review from omad October 27, 2023 06:02
Copy link
Contributor

@benjimin benjimin left a comment

Choose a reason for hiding this comment

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

This (not needing to fake globs, not needing to specify product, keeping python current) will be helpful, thanks!

@@ -48,7 +48,7 @@ dependencies:
- sphinx-autodoc-typehints
- nbsphinx

- pip=20
- pip=23
- pip:
# odc.apps.dc-tools
- thredds-crawler
Copy link
Member

Choose a reason for hiding this comment

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

Don't change it in this PR, but all of thredds-crawler, rio-stac and jupyter-ui-poll are available from conda-forge, so should be installed from there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a reason not to change it now?

Copy link
Member

Choose a reason for hiding this comment

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

In case it makes tests fail, or otherwise complicates a pleasantly straightforward PR. :)

apps/dc_tools/odc/apps/dc_tools/s3_to_dc.py Show resolved Hide resolved
apps/dc_tools/odc/apps/dc_tools/s3_to_dc.py Outdated Show resolved Hide resolved
apps/dc_tools/odc/apps/dc_tools/s3_to_dc.py Outdated Show resolved Hide resolved
apps/dc_tools/tests/test_s3_to_dc.py Show resolved Hide resolved
apps/dc_tools/odc/apps/dc_tools/s3_to_dc.py Show resolved Hide resolved
@Ariana-B Ariana-B requested a review from omad November 16, 2023 02:22
Copy link
Member

@omad omad left a comment

Choose a reason for hiding this comment

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

Love it! Useful improvement while maintaining backwards compatibility.

Thanks Ariana.

@omad omad merged commit fc06a1c into develop Nov 16, 2023
8 checks passed
@omad omad deleted the improve_s3_glob branch November 16, 2023 06:10
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.

3 participants