Open
Description
Problem description
If user tries to set up filters addon block with Query type: User-defined, he isn't able to get any data with this filter - 422 error
Step to reproduce
Steps to reproduce the behavior:
- Import iRec4 policy
- Find issue_by_device block, change Query type from Equal to User-defined
- Put the policy in the dry run mode, run flow - create and approve application, create and approve few devices, and check Issue Request page under the User (not SR/Administrator)
Expected behavior
User is able to change filter's type: set Equal, Not equal, Greater than etc.
Actual behavior
There is 422 error, filter isn't working
2025-01-29T10:30:46.169Z [GUARDIAN_SERVICE]: Error: Unknown filter type: undefined
at file:/guardian/guardian-service/dist/helpers/guardians.js:95:32
at SubscriptionImpl.callback (file:/guardian/common/dist/mq/nats-service.js:49:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)