Some fixes.

This commit is contained in:
Fabian Märki
2017-08-16 16:23:05 +02:00
parent 40aeb65ca9
commit b7c20ee03e
2 changed files with 7 additions and 2 deletions

View File

@ -96,7 +96,11 @@ public class QueryRestController {
produces = {MediaType.APPLICATION_JSON_VALUE})
public @ResponseBody List<ChannelsResponse> getChannels(@RequestBody(required = false) ChannelsRequest request)
throws Throwable {
return queryManager.getChannels(request);
List<ChannelsResponse> channels = queryManager.getChannels(request);
channels = channels.stream()
.filter(channelsResponse -> activeBackends.contains(channelsResponse.getBackend()))
.collect(Collectors.toList());
return channels;
}
/**

View File

@ -5,4 +5,5 @@ dispatcher.validate.mainheader=false
dispatcher.validate.mainheader.log=false
query.min.time=1970-01-01T00:00:00.000000000+00:00
# enable/disable validation
filestorage.pulseidtime.store.validate.range=false
filestorage.pulseidtime.store.validate.range=false
filestorage.pulseidtime.cache.commit.period=0