Skip to content

Commit

Permalink
[rest] Add channels to cacheable Things list
Browse files Browse the repository at this point in the history
Fixes openhab/openhab-webui#1996.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Aug 17, 2023
1 parent 5f8658d commit 268ca14
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ public Response getAll(@Context Request request,
CacheControl cc = new CacheControl();
cc.setMustRevalidate(true);
cc.setPrivate(true);
thingStream = dtoMapper.limitToFields(thingStream, "UID,label,bridgeUID,thingTypeUID,location,editable");
thingStream = dtoMapper.limitToFields(thingStream,
"UID,label,bridgeUID,thingTypeUID,channels,location,editable");
return Response.ok(new Stream2JSONInputStream(thingStream)).lastModified(cacheableListLastModified)
.cacheControl(cc).build();
}
Expand Down

0 comments on commit 268ca14

Please sign in to comment.