Skip to content

Commit

Permalink
chore(core): don't report examples flows
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Apr 3, 2022
1 parent 8e19e34 commit 3a08b1d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ public class FlowUsage {
private final Map<String, Long> triggerTypeCount;

public static FlowUsage of(FlowRepositoryInterface flowRepository) {
List<Flow> allFlows = flowRepository.findAll();
List<Flow> allFlows = flowRepository.findAll()
.stream()
.filter(flow -> !flow.getNamespace().startsWith("io.kestra.demo"))
.collect(Collectors.toList());

return FlowUsage.builder()
.count(allFlows.size())
Expand Down

0 comments on commit 3a08b1d

Please sign in to comment.