CacheControl / CacheControl/json-rules-engine

How to create multiple 'aggregate' facts on a 'parent' object calculated from child objects (composition)

Open
#361 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

I have object(s) that will introduce facts that also have 'child' objects (composition). There will be multiple facts that are aggregate values on the parent that are calculated from the 'children.'

Typically these aggregate fact on the parent will follow one of the following patterns:

- count of children matching a filter (or all)
- sum of children matching a filter (or all)

I didn't see anything like that in the examples. It would be great if it could be added!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the repository's existing examples and the requirements listed here: parent facts calculated from composed children, including filtered or unfiltered counts and sums. Determine whether the rules engine already supports this pattern; done requires a concrete example or a narrowed implementation proposal that defines the supported aggregate behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.