hcengineering / hcengineering/platform
Sentry: $in predicate requires array
- 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)
```
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