[PR #6567] fix: disable oneOf and notOneOf operations for Notes filter #6606

Closed
opened 2026-02-28 21:30:35 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6567

State: closed
Merged: Yes


Summary

  • Fixes crash when changing Notes filter to "one of" or "not one of" operation
  • Notes field is a free-text field and shouldn't support these operations

Changes

  • Adds 'oneOf' and 'notOneOf' to disallowedOps for the notes field in rules.ts
  • Updates TypeScript type definitions in rule.ts to reflect this constraint
  • Updates existing tests to use imported_payee field for oneOf tests
  • Adds unit tests for isValidOp and getValidOps functions

Test Plan

  • Verified yarn typecheck passes
  • Verified yarn lint:fix passes
  • Verified yarn test passes
  • Added unit tests for the new behavior

Fixes #6325

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6567 **State:** closed **Merged:** Yes --- ## Summary - Fixes crash when changing Notes filter to "one of" or "not one of" operation - Notes field is a free-text field and shouldn't support these operations ## Changes - Adds 'oneOf' and 'notOneOf' to disallowedOps for the notes field in `rules.ts` - Updates TypeScript type definitions in `rule.ts` to reflect this constraint - Updates existing tests to use `imported_payee` field for oneOf tests - Adds unit tests for `isValidOp` and `getValidOps` functions ## Test Plan - [x] Verified `yarn typecheck` passes - [x] Verified `yarn lint:fix` passes - [x] Verified `yarn test` passes - [x] Added unit tests for the new behavior Fixes #6325
GiteaMirror added the pull-request label 2026-02-28 21:30:35 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6606