Skip to content

Commit

Permalink
fix(topic): topic - skip-consumer-group is not respected
Browse files Browse the repository at this point in the history
close #372
  • Loading branch information
tchiotludo committed Aug 28, 2020
1 parent 8c908c9 commit 506afe1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/akhq/controllers/TopicController.java
Expand Up @@ -95,7 +95,8 @@ public ResultPagedList<Topic> list(
cluster,
pagination,
show.orElse(TopicRepository.TopicListView.valueOf(defaultView)),
search
search,
skipConsumerGroups
));
}

Expand Down Expand Up @@ -198,7 +199,7 @@ public List<Partition> partitions(String cluster, String topicName) throws Execu
@Get("api/{cluster}/topic/{topicName}/groups")
@Operation(tags = {"topic"}, summary = "List all consumer groups from a topic")
public List<ConsumerGroup> groups(String cluster, String topicName) throws ExecutionException, InterruptedException {
return this.topicRepository.findByName(cluster, topicName, false).getConsumerGroups();
return this.topicRepository.findByName(cluster, topicName, skipConsumerGroups).getConsumerGroups();
}

@Get("api/{cluster}/topic/{topicName}/configs")
Expand Down

0 comments on commit 506afe1

Please sign in to comment.