-
Notifications
You must be signed in to change notification settings - Fork 533
FIX: DataSink to S3 buckets #3130
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
Conversation
I agree with @oesteban that I think converting In any event, could you rebase onto |
Due to how pathlib.Path handles path strings, S3 bucket paths are missing a /.
Codecov Report
@@ Coverage Diff @@
## maint/1.4.x #3130 +/- ##
===============================================
+ Coverage 67.59% 67.72% +0.12%
===============================================
Files 299 299
Lines 39499 39834 +335
Branches 5220 5364 +144
===============================================
+ Hits 26700 26976 +276
- Misses 12086 12125 +39
- Partials 713 733 +20
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As all the reviewers noted, there seems to be little to no advantage of keeping Changed the DataSink input spec instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. A quick question and a suggestion.
container = Str(desc="Folder within base directory in which to store output") | ||
parameterization = traits.Bool( | ||
True, usedefault=True, desc="store output in parametrized structure" | ||
) | ||
strip_dir = Directory(desc="path to strip out of filename") | ||
strip_dir = Str(desc="path to strip out of filename") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the effect of this change? Was something failing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think this will make any difference in proper use cases.
But since we are setting base_directory
trait to Str
to be faithful to the user's inputs, it would not make sense to disable input processing on one path input but not the other.
Due to how
pathlib.Path
handles path strings, S3 bucket paths are missing a/
.Summary
Fixes #3105.
List of changes proposed in this PR (pull-request)
Str
rather thanDirectory
.Acknowledgment