[ 
https://issues.apache.org/jira/browse/UNOMI-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevan Jahanshahi updated UNOMI-676:
-----------------------------------
    Fix Version/s: unomi-2.0.0
                   unomi-1.6.2

> Past Event Condition recalculations are only processing a max of 50 rules
> -------------------------------------------------------------------------
>
>                 Key: UNOMI-676
>                 URL: https://issues.apache.org/jira/browse/UNOMI-676
>             Project: Apache Unomi
>          Issue Type: Bug
>    Affects Versions: unomi-2.0.0, unomi-1.6.1
>            Reporter: Dave van Herten
>            Priority: Major
>             Fix For: unomi-2.0.0, unomi-1.6.2
>
>
> The rule metadata retrieval is hardcoded to return 50 records. 
> Because of this when the segment service uses this method, it will only ever 
> look at those 50 rules when recalculating. 
> References:
> [https://github.com/apache/unomi/blob/a44710fac7fb6f6bc69f24e65e309bc7b5c0871b/services/src/main/java/org/apache/unomi/services/impl/rules/RulesServiceImpl.java#L353-L359]
> [https://github.com/apache/unomi/blob/89200bf63dc94d2834079c2cd820a3804131f911/services/src/main/java/org/apache/unomi/services/impl/segments/SegmentServiceImpl.java#L935-L952]
> While the recalc is probably the larger issue there is probably a need for 
> paging on the rest endpoint for getting rules as well since it is limited to 
> returning only 50 as well because of this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to