Skip to content
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

Fix FilterSuppressions to match on hierarchy #1631

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

srchase
Copy link
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