Merge pull request #34225 from backstage/fix/filter-predicate-mixed-operator-keys

fix(filter-predicates): reject operator keys mixed with other keys
This commit is contained in:
Fredrik Adelöw
2026-05-19 09:24:31 +02:00
committed by GitHub
5 changed files with 55 additions and 6 deletions
@@ -0,0 +1,5 @@
---
'@backstage/filter-predicates': patch
---
Filter predicates that mix operator keys (`$all`, `$any`, `$not`) with other keys are now rejected. Previously, a predicate like `{ kind: 'API', $not: { 'spec.type': 'dataset' } }` would silently drop the `kind` check. The correct form wraps conditions in `$all`.