Generate GetBucketLogging#4249
Conversation
stack-info: PR: #4249, branch: peterrsongg/petesong/phase-3-pr7-2/1
19820f0 to
fec8357
Compare
READ THISS3BucketLoggingConfig does contain those three public methods. It has been preserved. Breaking Changes Analysis for GetBucketLogging MigrationFiles Analyzed: 19 of 19BREAKING CHANGE FOUND:File: S3BucketLoggingConfig.csIssue Type: Public API Methods Removed Details: The custom
Impact: Any customer code that calls these methods will break at compile time. These were convenience methods for managing the Grants collection. Previous Code (Custom): public partial class S3BucketLoggingConfig
{
public void AddGrant(S3Grantee grantee, S3Permission permission)
{
if (Grants == null)
{
Grants = new List<S3Grant>();
}
S3Grant grant = new S3Grant{ Grantee = grantee, Permission = permission };
Grants.Add(grant);
}
public void RemoveGrant(S3Grantee grantee, S3Permission permission) { ... }
public void RemoveGrant(S3Grantee grantee) { ... }
}Current Code (Generated): public partial class S3BucketLoggingConfig
{
// Methods completely removed
// Only properties remain: Grants, TargetBucketName, TargetObjectKeyFormat, TargetPrefix
}Non-Breaking Changes Successfully Preserved:
Summary:Total Files Changed: 19 The migration successfully preserved most of the custom behavior through the partial class pattern and customizations. However, the removal of the three public helper methods from S3BucketLoggingConfig represents a breaking API change that will affect any customers currently using these methods to manage bucket logging grants. |
| { | ||
| if (context.IsStartElement || context.IsAttribute) | ||
| { | ||
| if (context.TestExpression("TargetGrants/Grant", targetDepth)) |
There was a problem hiding this comment.
This file is replacing https://github.com/aws/aws-sdk-net/blob/main/sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/LoggingEnabledUnmarshaller.cs, right?
If yes, should (could?) that file be deleted in the PR too? And the old unmarshaller uses context.TestExpression("Grant", targetDepth + 1) instead, I assume that's because it was hand-written?
There was a problem hiding this comment.
yeah it should be removed, it isn't gonna be used anymore. However, I'm running into some annoying merge conflict / build issues with all the code under review rn and the stuff muhammad released. I'll wait to update this, until the 5 other open PRs are merged so that I can just rebase on development
|
lots of newly generated s3 operations are making the diff hard to review. closing and will re-open a PR that is easier to review. |
Stacked PRs:
Description
Generate GetBucketLogging
Motivation and Context
Testing
Assembly Comparison output empty (no backwards incompatible changes)
Fuzz Testing run: No backwards incompatibilities
DRY_RUN passed 7b1db732-7d93-4e80-ba86-5301f393e2ae
Screenshots (if appropriate)
Types of changes
Checklist
License