feat: suggest combining repeated query filters into In / Not In - #1994
Conversation
bc0f869 to
5ebf892
Compare
The query builder now detects 2+ conditions on the same field that can be collapsed — OR + Equals into In, AND + Does Not Equal into Not In — and offers a one-click conversion in a dismissible inline hint above the filter rows. Rows using a date picker or a field function are skipped, since neither survives the rewrite unchanged. Closes #1987
5ebf892 to
9ee3db9
Compare
Code review summaryAutomated review (Claude Code). Fixes below are pushed as an amend to the PR head. Verdict: the SOQL rewrite is semantically correct and unusually well tested. Remaining items are UX polish. Verified against a live org: Fixed and pushed
Verified as a genuine regression guard: with the fix reverted, the new assertion fails with exactly the reported artifact (
|
The query builder now detects 2+ conditions on the same field that can be collapsed — OR + Equals into In, AND + Does Not Equal into Not In — and offers a one-click conversion in a dismissible inline hint above the filter rows. Rows using a date picker or a field function are skipped, since neither survives the rewrite unchanged.
Closes #1987