Skip to content

Simplify filter traversal. - #318

Merged
kqarryzada merged 2 commits into
masterfrom
DS-52035-simplify-filter-traversal
Nov 9, 2026
Merged

kqarryzada merged 2 commits into
masterfrom
DS-52035-simplify-filter-traversal

Conversation

@kqarryzada

Copy link
Copy Markdown
Collaborator

Added a new Filter helper method to simplify navigation of nested filter trees by providing all filter components in a flat list. This provides an accessible means for simple analysis, such as obtaining the total number of filter components in a client filter object.

Reviewer: dougbulkley
Reviewer: vyhhuang

JiraIssue: DS-52035

Added a new Filter helper method to simplify navigation of nested filter
trees by providing all filter components in a flat list. This provides
an accessible means for simple analysis, such as obtaining the total
number of filter components in a client filter object.

Reviewer: dougbulkley
Reviewer: vyhhuang

JiraIssue: DS-52035
@kqarryzada kqarryzada self-assigned this Nov 5, 2026
* <pre><code>
* Filter notFilter = Filter.not(
* Filter.eq("type", "Rabbit")
* Filter.co("type", "rabbit")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I updated this example since inverting an equal filter doesn't make much sense when there's a dedicated ne filter type.

@vyhhuang vyhhuang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These changes look good to me.

@kqarryzada
kqarryzada merged commit bc073a0 into master Nov 9, 2026
6 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.

3 participants