Skip to content

S3 CreateBucket DeleteBucket single arg overloads #5438

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

Merged

Conversation

davidh44
Copy link
Contributor

Motivation and Context

Transforming createBucket and deleteBucket overloads with bucket String argument

Testing

Added unit and end-to-end tests

@davidh44 davidh44 requested a review from a team as a code owner July 29, 2024 18:14
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
7.9% Coverage on New Code (required ≥ 80%)
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint


@Override
public String getDescription() {
return "S3NonStreamingRequestToV2.";
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: can we have a more descriptive description? :) Same for display name

Comment on lines 68 to 73
if (CREATE_BUCKET.matches(method, false)) {
method = transformBucketNameArgOverload(method, V1_CREATE_BUCKET_REQUEST);
}
if (DELETE_BUCKET.matches(method, false)) {
method = transformBucketNameArgOverload(method, V1_DELETE_BUCKET_REQUEST);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: suggest doing else if or returning immediately

@davidh44 davidh44 merged commit 1eaf187 into feature/master/migration-tool-updates Jul 29, 2024
7 of 8 checks passed
@davidh44 davidh44 deleted the hdavidh/s3-bucket-requests branch July 29, 2024 23:51
@davidh44 davidh44 mentioned this pull request Aug 9, 2024
12 tasks
davidh44 added a commit that referenced this pull request Aug 9, 2024
* S3 CreateBucket DeleteBucket single arg overload

* Address comments
@davidh44 davidh44 mentioned this pull request Aug 9, 2024
12 tasks
davidh44 added a commit that referenced this pull request Aug 9, 2024
* S3 PutObject String overload (#5429)

* S3 PutObject String overload

* Add comment

* S3 CreateBucket DeleteBucket single arg overloads (#5438)

* S3 CreateBucket DeleteBucket single arg overload

* Address comments
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.

2 participants