Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
search: use exclude filters when resolving global private repos (#27501)
Zoekt is not aware of user permissions, so we calculate the set of private repos a user can see and pass that on to zoekt. This is only done in "global mode", otherwise we just use the repo resolver. We recently added support to exclude repos in global searches. However, that was only done for the public repositories and we didn't update the logic which calculated the set of private repositories to take that into account. This commit adds in the ExcludePattern similiar to how the repository resolver works. Note: we should just use the repository resolver. However, we use slightly different logic for setting "UserID" in the search than the repo resolver. This commit does the simplest fix, instead of the more general fix.
- Loading branch information
1 parent
0fcbade
commit a88d90a
Showing
4 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters