Skip to content

Fix FilterSuppressions to match on hierarchy#1631

Merged
srchase merged 1 commit intosmithy-lang:mainfrom
srchase:removeUnused-event-id-hierarchy
Feb 24, 2023
Merged

Fix FilterSuppressions to match on hierarchy#1631
srchase merged 1 commit intosmithy-lang:mainfrom
srchase:removeUnused-event-id-hierarchy

Conversation

@srchase
Copy link
Copy Markdown
Contributor

@srchase srchase commented Feb 24, 2023

Hierarchical eventIds were added in #1527.

This PR fixes the FilterSuppressions transform to keep suppressions that match a prefix when using the removeUnused transform configuration.

Currently, @suppress(['A']) will be removed as unused if a validation event does not match A exactly.

This PR updates the transform retain @suppress(['A']) when a validation event for A.B has been emitted for the shape where the suppression was applied.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@srchase srchase requested a review from a team as a code owner February 24, 2023 13:43
@srchase srchase force-pushed the removeUnused-event-id-hierarchy branch from af5a8c6 to dfdecda Compare February 24, 2023 13:58
@srchase srchase merged commit 8f32289 into smithy-lang:main Feb 24, 2023
@srchase srchase deleted the removeUnused-event-id-hierarchy branch February 24, 2023 14:14
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