Fix #1418 Expose AwsCredentialsProvider to AmazonS3InstallationService#1419
Merged
seratch merged 1 commit intoslackapi:mainfrom Jan 15, 2025
Merged
Fix #1418 Expose AwsCredentialsProvider to AmazonS3InstallationService#1419seratch merged 1 commit intoslackapi:mainfrom
seratch merged 1 commit intoslackapi:mainfrom
Conversation
This was referenced Jan 14, 2025
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: |
Contributor
Author
|
Thanks for the suggestions; I've revised this PR |
That looks like it'll work. 👍 I'll try it out, once merged. |
WilliamBergamin
approved these changes
Jan 14, 2025
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")); |
bruceadowns
reviewed
Jan 14, 2025
| 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.
Suggested change
| this.endpointOverride = (endpointOverride != null && !endpointOverride.isEmpty()) ? URI.create(endpointOverride) : null; | |
| this.endpointOverride = StringUtils.isBlank(endpointOverride) ? null : URI.create(endpointOverride); |
seratch
commented
Jan 14, 2025
bolt/src/main/java/com/slack/api/bolt/service/builtin/AmazonS3OAuthStateService.java
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request resolves #1418
Category (place an
xin 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.