[ 
https://issues.apache.org/jira/browse/UNOMI-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894609#comment-17894609
 ] 

Jonathan Sinovassin-Naïk commented on UNOMI-856:
------------------------------------------------

It seems that the tracked conditions are returned correctly. It has been fixed 
a while ago by https://github.com/apache/unomi/pull/510

However the /rules endpoint (getAllRules) does not returns all of the rules. 
The list of results is limited to 50 entries.

The following PR allow to return all of the results:
https://github.com/apache/unomi/pull/707

> Tracked conditions not processing all rules
> -------------------------------------------
>
>                 Key: UNOMI-856
>                 URL: https://issues.apache.org/jira/browse/UNOMI-856
>             Project: Apache Unomi
>          Issue Type: Task
>            Reporter: Jonathan Sinovassin-Naïk
>            Assignee: Jonathan Sinovassin-Naïk
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When there is more than 50 rules stored in UNOMI, only the first 50 rules are 
> returned when calling the getAllRules() method of the ruleService.
> Because of this behaviour, we might miss some tracked Condition when calling 
> the contextJson endpoint because it's reading the available rules to get the 
> tracked conditions from these rules.
> We can easily see that only the first 50 rules are returned when calling: 
> curl -X GET "http://localhost:8181/cxs/rules"; -H "accept: application/json"
> This behaviour is surprising because there is a integration test to ensure 
> that more than 50 are returned when calling the getAllRules method.
> The issue should have been fixed with this PR: 
> https://github.com/apache/unomi/pull/510/files#diff-5ca34d7110d2bf25a8ce9c2a3d530f24db7e0d9b0374ee379d7d9581e98f486b
> Related ticket: https://issues.apache.org/jira/browse/UNOMI-676 



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

Reply via email to