-
Notifications
You must be signed in to change notification settings - Fork 873
Generate GetBucketLogging #4249
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
base: petesong/phase-3-pr7-base
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
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 Build id: d30dff17-75cd-433b-8c3a-ea1ca887a28d
Screenshots (if appropriate)
Types of changes
Checklist
License