Skip to content

Change maxReposToSearch default to be unlimited

Warren Gifford requested to merge maxrepostosearch into master

Created by: nicksnyder

I received a report from a user on Twitter that they were surprised their private Sourcegraph instance was limited to 50 repositories by default. https://twitter.com/IvanZaQGrund/status/1114076394093457408

I took at look at the code and found a lot of inconsistencies. We prefill our default site config with a limit of 50, we document that the default is 500, and if the user specifies -1 it behaves as "unlimited". This seems unnecessarily complicated and confusing.

This PR changes the default behavior in all circumstances (unconfigured, 0, -1) to be "unlimited".

Merge request reports

Loading