hcengineering / hcengineering/platform

Sentry: $in predicate requires array

Open
#5,359 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
27.7k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

```
Error: $in predicate requires array at predicates.$in (webpack://@uberflow/prod/../../anticrm/packages/core/src/predicate.ts:42:17) at createPredicates (webpack://@uberflow/prod/../../anticrm/packages/core/src/predicate.ts:123:17) at findProperty (webpack://@uberflow/prod/../../anticrm/packages/core/src/query.ts:14:19) at matchQuery (webpack://@uberflow/prod/../../anticrm/packages/core/src/query.ts:166:14) at ae.findAll (webpack://@uberflow/prod/../../anticrm/packages/core/src/memdb.ts:157:14) ... (10 additional frame(s) were not displayed)
```

Huly®: UBERF-6555

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at packages/core/src/predicate.ts:42 and trace the $in call from createPredicates through query.ts and memdb.ts using the Sentry stack trace. Reproduce the failure, identify the query input that is not an array, and add a regression test showing the corrected behavior without triggering this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.