CacheControl / CacheControl/json-rules-engine
Find unused facts
未關閉
- 主要語言
- JavaScript
- 星號
- 3.1k
- 分支
- 507
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Is it possible to retrieve a list of facts which were not used / triggered by any rule in the engine?
Pseudo code:
```
facts = {
A: true,
B: false,
C: true,
D: false
}
rule = {
check if A == true ?
}
engine(rule).run(facts)
```
I want to retrieve facts which were not used by this rule (`B, C, D`)
This is an atypical request I guess. :)
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
該 issue 未指明檔案或測試;從進入點 engine(rule).run(facts) 開始,追蹤 facts 如何根據 rule 進行評估。定義應如何回報未使用的 facts(例如 B、C 和 D),然後為 pseudocode 情境新增覆蓋。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- backend
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100