-
Notifications
You must be signed in to change notification settings - Fork 218
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
Fix #1418 Expose AwsCredentialsProvider to AmazonS3InstallationService #1419
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1419 +/- ##
============================================
- Coverage 73.26% 73.17% -0.09%
- Complexity 4370 4372 +2
============================================
Files 474 474
Lines 14185 14205 +20
Branches 1433 1437 +4
============================================
+ Hits 10393 10395 +2
- Misses 2947 2961 +14
- Partials 845 849 +4 ☔ View full report in Codecov by Sentry. |
This change would work fine, however I also need to add region and endpointUrl. I can put this in a PR if you want, but here is a diff showing you my thinking:
|
Thanks for the suggestions; I've revised this PR |
That looks like it'll work. 👍 I'll try it out, once merged. |
bolt/src/main/java/com/slack/api/bolt/service/builtin/AmazonS3InstallationService.java
Outdated
Show resolved
Hide resolved
this.bucketName = bucketName; | ||
this.credentialsProvider = credentialsProvider; | ||
this.region = region != null || System.getenv("AWS_REGION") == null ? region : Region.of(System.getenv("AWS_REGION")); |
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.
Same here
this.bucketName = bucketName; | ||
this.credentialsProvider = credentialsProvider; | ||
this.region = region != null || System.getenv("AWS_REGION") == null ? region : Region.of(System.getenv("AWS_REGION")); | ||
this.endpointOverride = (endpointOverride != null && !endpointOverride.isEmpty()) ? URI.create(endpointOverride) : null; |
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.
this.endpointOverride = (endpointOverride != null && !endpointOverride.isEmpty()) ? URI.create(endpointOverride) : null; | |
this.endpointOverride = StringUtils.isBlank(endpointOverride) ? null : URI.create(endpointOverride); |
This pull request resolves #1418
Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.