You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by js...@apache.org on 2024/10/31 14:51:23 UTC
(unomi) branch UNOMI-856 created (now 5cd24c7f2)
This is an automated email from the ASF dual-hosted git repository.
jsinovassinnaik pushed a change to branch UNOMI-856
in repository https://gitbox.apache.org/repos/asf/unomi.git
at 5cd24c7f2 UNOMI-856: return all rules when calling /rules endpoints
This branch includes the following new commits:
new 5cd24c7f2 UNOMI-856: return all rules when calling /rules endpoints
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(unomi) 01/01: UNOMI-856: return all rules when calling /rules endpoints
Posted by js...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jsinovassinnaik pushed a commit to branch UNOMI-856
in repository https://gitbox.apache.org/repos/asf/unomi.git
commit 5cd24c7f2a4533ecd940d2392b3d3a50fae851df
Author: jsinovassin <js...@jahia.com>
AuthorDate: Thu Oct 31 15:51:10 2024 +0100
UNOMI-856: return all rules when calling /rules endpoints
---
.../java/org/apache/unomi/services/impl/rules/RulesServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/services/src/main/java/org/apache/unomi/services/impl/rules/RulesServiceImpl.java b/services/src/main/java/org/apache/unomi/services/impl/rules/RulesServiceImpl.java
index 0861c53e3..086331dde 100644
--- a/services/src/main/java/org/apache/unomi/services/impl/rules/RulesServiceImpl.java
+++ b/services/src/main/java/org/apache/unomi/services/impl/rules/RulesServiceImpl.java
@@ -355,7 +355,7 @@ public class RulesServiceImpl implements RulesService, EventListenerService, Syn
public Set<Metadata> getRuleMetadatas() {
Set<Metadata> metadatas = new HashSet<Metadata>();
- for (Rule rule : persistenceService.getAllItems(Rule.class, 0, 50, null).getList()) {
+ for (Rule rule : persistenceService.getAllItems(Rule.class, 0, -1, null).getList()) {
metadatas.add(rule.getMetadata());
}
return metadatas;