diff --git a/code/services-core/control-service/src/main/java/nu/marginalia/control/sys/svc/EventLogService.java b/code/services-core/control-service/src/main/java/nu/marginalia/control/sys/svc/EventLogService.java index ed349ba7..446b1c32 100644 --- a/code/services-core/control-service/src/main/java/nu/marginalia/control/sys/svc/EventLogService.java +++ b/code/services-core/control-service/src/main/java/nu/marginalia/control/sys/svc/EventLogService.java @@ -12,10 +12,7 @@ import spark.Response; import java.sql.SQLException; import java.sql.Timestamp; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Optional; +import java.util.*; @Singleton public class EventLogService { @@ -41,7 +38,6 @@ public class EventLogService { List typeFilterList = new ArrayList<>(); List typenames = getTypeNames(); - typeFilterList.add(new EventLogTypeFilter("Show All", "", typeParam == null)); for (String typename : typenames) { typeFilterList.add(new EventLogTypeFilter(typename, typename, typename.equalsIgnoreCase(typeParam))); @@ -49,7 +45,6 @@ public class EventLogService { List serviceFilterList = new ArrayList<>(); List serviceNames = getServiceNames(); - serviceFilterList.add(new EventLogServiceFilter("Show All", "", serviceParam == null)); for (String serviceName : serviceNames) { serviceFilterList.add(new EventLogServiceFilter(serviceName, serviceName, serviceName.equalsIgnoreCase(serviceParam))); @@ -84,6 +79,9 @@ public class EventLogService { "events", entries, "types", typeFilterList, "services", serviceFilterList, + "serviceParam", Objects.requireNonNullElse(serviceParam, ""), + "typeParam", Objects.requireNonNullElse(typeParam, ""), + "afterParam", Objects.requireNonNullElse(afterParam, ""), "next", next, "elFilter", elFilter); diff --git a/code/services-core/control-service/src/main/resources/templates/control/partials/events-table.hdb b/code/services-core/control-service/src/main/resources/templates/control/partials/events-table.hdb index 84defba2..bb526d6f 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/partials/events-table.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/partials/events-table.hdb @@ -9,24 +9,38 @@ Message - -
- + {{#if services}} +
+ + +
+ {{/if}} - + {{#if types}} +
+ + +
+ {{/if}} - - - -
- + {{#each events}} diff --git a/code/services-core/control-service/src/main/resources/templates/control/partials/message-queue-table.hdb b/code/services-core/control-service/src/main/resources/templates/control/partials/message-queue-table.hdb index df36e11b..9f60cd7c 100644 --- a/code/services-core/control-service/src/main/resources/templates/control/partials/message-queue-table.hdb +++ b/code/services-core/control-service/src/main/resources/templates/control/partials/message-queue-table.hdb @@ -20,7 +20,7 @@