Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
3ce73e7
UNOMI-920 Improve toString() methods with YAML formatting for debugging
sergehuber May 5, 2026
94ec7a3
UNOMI-879 Unified CRUD shell developer commands
sergehuber May 6, 2026
dd35f3e
Add manual dispatch to CodeQL Java workflow
sergehuber May 15, 2026
86d14d0
Add manual dispatch to CodeQL JavaScript workflow
sergehuber May 15, 2026
124af7e
Add manual dispatch to CodeQL Java workflow
sergehuber May 15, 2026
c5b167c
Add manual dispatch to CodeQL JavaScript workflow
sergehuber May 15, 2026
22de38c
CI: always publish IT JUnit report and update check on re-run
sergehuber May 15, 2026
e07e3e4
Merge branch 'UNOMI-920-yaml-tostring' into UNOMI-879-unified-crud-shell
sergehuber May 15, 2026
fe30c97
Merge remote-tracking branch 'origin/UNOMI-879-unified-crud-shell' in…
sergehuber May 15, 2026
bcf5a68
UNOMI-920: Address PR review feedback for YAML toString support
sergehuber May 16, 2026
fdf372e
Merge branch 'UNOMI-920-yaml-tostring' into UNOMI-879-unified-crud-shell
sergehuber May 16, 2026
c836baa
Merge branch 'master' into UNOMI-920-yaml-tostring
sergehuber May 16, 2026
ba50cc8
Merge branch 'UNOMI-920-yaml-tostring' into UNOMI-879-unified-crud-shell
sergehuber May 16, 2026
4bd200a
UNOMI-879: Address PR review feedback for unified CRUD shell
sergehuber May 16, 2026
df1dc2a
UNOMI-880 (split A0): migrate Elasticsearch integration tests to Docker
sergehuber May 18, 2026
cab5662
Merge branch 'UNOMI-itests-es-docker' into UNOMI-920-yaml-tostring
sergehuber May 18, 2026
6c46aee
Merge branch 'UNOMI-920-yaml-tostring' into UNOMI-879-unified-crud-shell
sergehuber May 18, 2026
a2e008c
UNOMI-921: Replace elasticsearch-maven-plugin with Docker-based Elast…
sergehuber May 18, 2026
30c444e
Merge branch 'UNOMI-itests-es-docker' into UNOMI-920-yaml-tostring
sergehuber May 18, 2026
600098a
Merge branch 'UNOMI-920-yaml-tostring' into UNOMI-879-unified-crud-shell
sergehuber May 18, 2026
2f991d0
Merge branch 'master' into UNOMI-itests-es-docker
sergehuber May 19, 2026
2f881c4
Merge branch 'UNOMI-itests-es-docker' into UNOMI-920-yaml-tostring
sergehuber May 19, 2026
b45e422
Merge branch 'UNOMI-920-yaml-tostring' into UNOMI-879-unified-crud-shell
sergehuber May 19, 2026
944c39b
UNOMI-937: Add build.sh CI mode for non-interactive GitHub Actions
sergehuber May 23, 2026
eb294da
UNOMI-937: Harden flaky integration tests with keepTrying polling
sergehuber May 23, 2026
c2f3001
UNOMI-937: Add waitForProfileProperty helper for async rule updates
sergehuber May 23, 2026
2611dea
UNOMI-937: Run GitHub Actions unit and IT jobs via build.sh
sergehuber May 23, 2026
88da78a
UNOMI-921: Replace elasticsearch-maven-plugin with Docker-based Elast…
sergehuber May 18, 2026
983e6a2
Merge remote-tracking branch 'origin/UNOMI-itests-es-docker' into UNO…
sergehuber May 23, 2026
dea4cd0
Merge branch 'UNOMI-921-itests-es-docker' into UNOMI-920-yaml-tostring
sergehuber May 23, 2026
8c03514
Merge branch 'UNOMI-920-yaml-tostring' into UNOMI-879-unified-crud-shell
sergehuber May 28, 2026
899daf1
Merge branch 'master' into UNOMI-921-itests-es-docker
sergehuber May 28, 2026
749c5ae
Merge branch 'UNOMI-921-itests-es-docker' into UNOMI-920-yaml-tostring
sergehuber May 28, 2026
a29f08c
Merge branch 'UNOMI-920-yaml-tostring' into UNOMI-879-unified-crud-shell
sergehuber May 28, 2026
f9aee2d
Merge branch 'master' into UNOMI-879-unified-crud-shell
sergehuber May 30, 2026
a3cafe3
UNOMI-879: Fix review findings in unified CRUD shell commands
sergehuber Jun 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,11 @@ public interface EventService {
* @param profileId identifier of the profile that we want to remove it's events
*/
void removeProfileEvents(String profileId);

/**
* Deletes the event identified by the given identifier from persistence.
*
* @param eventIdentifier the unique identifier for the event
*/
void deleteEvent(String eventIdentifier);
}
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,15 @@ default Session loadSession(String sessionId) {
*/
void removeProfileSessions(String profileId);

/**
* Deletes the session identified by the given identifier from persistence.
* Note: events belonging to this session are NOT removed; they remain in persistence
* with a dangling sessionId reference.
*
* @param sessionIdentifier the unique identifier for the session
*/
void deleteSession(String sessionIdentifier);

/**
* Checks whether the specified profile and/or session satisfy the specified condition.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@
import org.apache.unomi.lists.UserList;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Objects;

public class GraphQLListIT extends BaseGraphQLIT {

private static final Logger LOGGER = LoggerFactory.getLogger(GraphQLListIT.class);

@Test
public void testCRUD() throws Exception {
Profile persistedProfile = null;
Expand Down Expand Up @@ -86,7 +82,6 @@ public void testCRUD() throws Exception {
try (CloseableHttpResponse response = post("graphql/list/find-lists.json")) {
return ResponseContext.parse(response.getEntity());
} catch (Exception e) {
LOGGER.warn("find-lists poll attempt failed: {}", e.getMessage());
return null;
}
},
Expand All @@ -108,7 +103,7 @@ public void testCRUD() throws Exception {
try (CloseableHttpResponse response = post("graphql/list/delete-list.json")) {
final ResponseContext context = ResponseContext.parse(response.getEntity());

Assert.assertTrue("testListId", context.getValue("data.cdp.deleteList"));
Assert.assertTrue("deleteList should return true", Boolean.TRUE.equals(context.getValue("data.cdp.deleteList")));
}
} finally {
if (persistedProfile != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,9 @@ public void removeProfileEvents(String profileId){

persistenceService.removeByQuery(profileCondition,Event.class);
}

@Override
public void deleteEvent(String eventIdentifier) {
persistenceService.remove(eventIdentifier, Event.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,11 @@ public void removeProfileSessions(String profileId) {
persistenceService.removeByQuery(profileCondition, Session.class);
}

@Override
public void deleteSession(String sessionIdentifier) {
persistenceService.remove(sessionIdentifier, Session.class);
}

@Override
public boolean matchCondition(Condition condition, Profile profile, Session session) {
ParserHelper.resolveConditionType(definitionsService, condition, "profile " + profile.getItemId() + " matching");
Expand Down
14 changes: 14 additions & 0 deletions tools/shell-dev-commands/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,19 @@
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient-osgi</artifactId>
<version>${httpclient-osgi.version}</version>
<type>bundle</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
Expand All @@ -115,6 +121,14 @@
<configuration>
<instructions>
<Karaf-Commands>*</Karaf-Commands>
<Export-Package>
org.apache.unomi.shell.dev.services,
org.apache.unomi.shell.dev.commands
</Export-Package>
<_dsannotations>*</_dsannotations>
<_dsannotations-options>inherit</_dsannotations-options>
<_metatypeannotations>*</_metatypeannotations>
<_metatypeannotations-options>version;nested</_metatypeannotations-options>
</instructions>
</configuration>
</plugin>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading