Skip to content

Filters addon block doesn't work in some cases #4589

Open
@kirill-tolochko

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:

  1. Import iRec4 policy
  2. Find issue_by_device block, change Query type from Equal to User-defined
  3. 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)

Image

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions