CacheControl / CacheControl/json-rules-engine
operator greaterThan, lessThan not working properly for Date. It is only comparing day part, but not considering month and year while comparing
- 主要語言
- JavaScript
- 星號
- 3.1k
- 分支
- 507
- PR 合併指標
- 30 天內沒有已合併 PR
描述
it not working on date(json-rules-engine-6.5.0).
greaterThan working only on date’s day, it is not considering month and year. Let say datefield ABC value is “05 Apr 2022“, and we configure condition "if value “06 Apr 2021“ greaterThan ABC", then it is true as per library. Similarly, “04 Apr 2024“ greaterThan ABC is false as it only compare “04“ with “05“ and neglecting month and year part in comparison of dates.
{"conditions":{"any":[{"fact":"SomeProperty","tabnum":"1","value":"06-Sep-2024","operator":"greaterThan"}]}}
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
先針對 json-rules-engine 6.5.0 重現 issue 中的 greaterThan 條件,接著找出 greaterThan 和 lessThan 運算子的實作及其日期相關測試。完成的標準是比較會考量完整日期,包括日、月和年,而不只是日期部分。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- backend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100