CacheControl / CacheControl/json-rules-engine
Use fact as params input to another fact?
- 主要語言
- JavaScript
- 星號
- 3.1k
- 分支
- 507
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I've looked across the documentation, examples and existing issues and, if this has been previously discussed, I'm missing it. Is it possible to use one or more Fact as `params` input to another fact?
This is a little domain specific but, for example, if I have a fact that gets a "section" related to another object (via `params`) and then another fact that verifies "section" access control, can I do something like this as a fact?
```js
{
// Has permission to section?
fact: 'has-permission',
params: {
fact: 'related-section',
params: {
id: 'xyz123'
}
},
operator: 'equal',
value: true
}
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先檢視報告中引用的文件、範例和現有 issue,了解 fact params 如何解析。追蹤現有的 fact evaluation 進入點,以確認是否支援巢狀的 fact inputs。完成的標準是:記錄支援的使用方式及其限制,或定義巢狀 fact params 的實作範圍。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- backend
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100