CacheControl / CacheControl/json-rules-engine

Find unused facts

Open
#306 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.1k
Forks
507
PR merge metrics
No merged PRs in 30d

Description

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. :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.