Skip to content

Do not silently drop group limit overrides - #3819

Open
lbschanno wants to merge 1 commit into
integrationfrom
bugfix/groupLimitOverrides
Open

Do not silently drop group limit overrides#3819
lbschanno wants to merge 1 commit into
integrationfrom
bugfix/groupLimitOverrides

Conversation

@lbschanno

Copy link
Copy Markdown
Collaborator

QueryLogicGroupLimitProvider.createOverrides() can silently drop MatchableOverride instances when there are two or more mappings in the provided override map that resolve to equal Matcher types, and equal limits.

Add a check to MatchableOverride.compareTo() to also check against matcher equality to ensure we do not drop matchers of the same type, but different underlying patterns. Add unit tests to verify fix.

Fixes #3817

QueryLogicGroupLimitProvider.createOverrides() can silently drop
MatchableOverride instances when there are two or more mappings in the
provided override map that resolve to equal Matcher types, and equal
limits.

Add a check to MatchableOverride.compareTo() to also check against
matcher equality to ensure we do not drop matchers of the same type, but
different underlying patterns. Add unit tests to verify fix.

Fixes #3817
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.

Query Limit Feature - Group limit overrides can be silently dropped

1 participant