Files
twenty/packages
Sonarly Claude Code 63fee27620 fix: add IS_NOT operand support for UUID filter in turnRecordFilterIntoGqlOperationFilter
https://sonarly.com/issue/33728?type=bug

Workflow "Find Records" actions with UUID field filters using the IS_NOT operand throw an unhandled error, killing the entire workflow run on the worker process.

Fix: Added `RecordFilterOperand.IS_NOT` case to the UUID filter switch in `turnRecordFilterIntoRecordGqlOperationFilter`. The implementation follows the exact same pattern as the RELATION filter's `IS_NOT` case (lines 542-559 in the same file):

1. Wraps the `in` clause in a `not` filter to exclude matching UUIDs
2. OR-s with an `is: 'NULL'` check so that NULL values are also included in the "is not" result set

This matches the SQL semantics: `WHERE id NOT IN (...) OR id IS NULL`, which is the correct behavior for "is not" on nullable UUID fields.

Also added a corresponding test case in `turnRecordFilterIntoGqlOperationFilter.test.ts` that verifies the `IS_NOT` operand produces the expected `or` filter structure with both `not.recordId.in` and `recordId.is: 'NULL'` clauses.
2026-05-03 13:29:22 +00:00
..