Skip to content

CodeInsights: Fix query count filter checker (support count:all)

Administrator requested to merge vk/fix-insight-count-filter-query into main

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/30873

By default, all queries for the just-in-time type of insights have a count:99999 filter. But we also want to allow users to input their count filter. The query with two count values is an invalid query so we should detect appearance users count filters in a query and add or not add a default count:99999. This PR just simply fixes count appearance checker in a way that the checker supports the count: all filter.

Merge request reports

Loading