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 bug in MinLength and MaxLength when NullBehavior.EmptyString #538

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

eycho-am
Copy link
Contributor

Issue #, if available:

Description of changes:

  • While testing, we found a bug that when using the MaxLength or MinLength analyzers with the NullBehavior.EmptyString analyzer option, we weren't properly emitting metrics when using a where filter.
  • This was because the filter was not properly applied to constructing the criterion.
  • This PR fixes this issue for both MaxLength and MinLength analyzers and adds tests to verify.

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

…vior.EmptyString option, the where filter wasn't properly applied
Copy link
Contributor

@rdsharma26 rdsharma26 left a comment

Choose a reason for hiding this comment

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

LGTM

@eycho-am eycho-am merged commit c89aad8 into awslabs:master Feb 26, 2024
1 check passed
eycho-am added a commit that referenced this pull request Feb 26, 2024
…vior.EmptyString option, the where filter wasn't properly applied (#538)
eycho-am added a commit that referenced this pull request Feb 26, 2024
…vior.EmptyString option, the where filter wasn't properly applied (#538)
rdsharma26 pushed a commit that referenced this pull request Apr 16, 2024
…vior.EmptyString option, the where filter wasn't properly applied (#538)
rdsharma26 pushed a commit that referenced this pull request Apr 16, 2024
…vior.EmptyString option, the where filter wasn't properly applied (#538)
rdsharma26 pushed a commit that referenced this pull request Apr 16, 2024
…vior.EmptyString option, the where filter wasn't properly applied (#538)
rdsharma26 pushed a commit that referenced this pull request Apr 17, 2024
…vior.EmptyString option, the where filter wasn't properly applied (#538)
rdsharma26 pushed a commit that referenced this pull request Apr 17, 2024
…vior.EmptyString option, the where filter wasn't properly applied (#538)
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