Skip to content

Fix nested filter grouping order sensitivity#805

Merged
stevebauman merged 2 commits into
masterfrom
bug-804
May 11, 2026
Merged

Fix nested filter grouping order sensitivity#805
stevebauman merged 2 commits into
masterfrom
bug-804

Conversation

@stevebauman
Copy link
Copy Markdown
Member

Closes #804

This PR fixes nested filter groups losing their explicit grouping when followed by additional filters.

It preserves andFilter() / orFilter() group boundaries during nested filter extraction, so queries like:

(givenName=John AND sn=Smith) OR mail=John Smith

are no longer flattened into:

givenName=John OR sn=Smith OR mail=John Smith

This PR also extracts shared AND/OR group behavior into BooleanGroup and adds regression coverage for the affected nesting cases.

@stevebauman stevebauman merged commit 7283a1e into master May 11, 2026
31 checks passed
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.

v4 regression - Nested AND/OR filters not appling correctly

1 participant