Skip to content

Commit 977fa03

Browse files
authored
[rest] Enable filters for cacheable items list (#4119)
This allows the usage of filters when using `staticDataOnly=true`. Signed-off-by: Florian Hotze <[email protected]>
1 parent eeb6919 commit 977fa03

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/item

1 file changed

+1
-1
lines changed

Diff for: bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/item/ItemResource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public Response getItems(final @Context UriInfo uriInfo, final @Context HttpHead
263263
cacheableListsLastModified.put(namespaceSelector, lastModifiedDate);
264264
}
265265

266-
Stream<EnrichedItemDTO> itemStream = getItems(null, null).stream() //
266+
Stream<EnrichedItemDTO> itemStream = getItems(type, tags).stream() //
267267
.map(item -> EnrichedItemDTOMapper.map(item, false, null, uriBuilder, locale)) //
268268
.peek(dto -> addMetadata(dto, namespaces, null)) //
269269
.peek(dto -> dto.editable = isEditable(dto.name));

0 commit comments

Comments
 (0)