hcengineering / hcengineering/platform
Cockroach adapter uses wrong type for dueDate
Open
- Dominant language
- TypeScript
- Stars
- 27.7k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
1. Add dueDate filter with TODAY value
2. Change dueDate filter to exact date
When dueDate filter is changed, the app shows error `unsupported comparison operator: = ANY `
This is the dueDate condition in the query `(task.data#>>'{dueDate}' = ANY(ARRAY[]::jsonb[])`
The root cause of this is the fact, that the adapter does take into account type of the field. Filter provides `[undefined, null]`as filter value which is converted to `ANY(ARRAY[]::jsonb[])`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.