[rest] Enable filters for cacheable items list (#4119)

This allows the usage of filters when using `staticDataOnly=true`.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This commit is contained in:
Florian Hotze
2024-03-10 11:41:52 +01:00
committed by GitHub
parent eeb69197c6
commit 977fa0329a
@@ -263,7 +263,7 @@ public class ItemResource implements RESTResource {
cacheableListsLastModified.put(namespaceSelector, lastModifiedDate);
}
Stream<EnrichedItemDTO> itemStream = getItems(null, null).stream() //
Stream<EnrichedItemDTO> itemStream = getItems(type, tags).stream() //
.map(item -> EnrichedItemDTOMapper.map(item, false, null, uriBuilder, locale)) //
.peek(dto -> addMetadata(dto, namespaces, null)) //
.peek(dto -> dto.editable = isEditable(dto.name));