Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.0] Fix broken diff search if sub-repo perms are enabled#53218

Merged
unknwon merged 1 commit into
5.0from
backport-53210-to-5.0
Jun 14, 2023
Merged

[Backport 5.0] Fix broken diff search if sub-repo perms are enabled#53218
unknwon merged 1 commit into
5.0from
backport-53210-to-5.0

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2023

Copy link
Copy Markdown
Contributor

When sub-repo permissions are enabled, the sub-repo permissions filter would be applied to repositories where sub-repo permissions are relevant. This lead to type:diff search being broken when sub-repo permissions are enabled, since it would try to filter repositories for which sub-repo permissions do not apply.

This PR changes the check to confirm that sub-repo permissions are enabled for the repository being filtered before doing the sub-repo filter, and if the repository does not have sub-repo permissions enabled, the repository is skipped.

Test plan

Verified with manual checks. Added unit test.

<!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles -->

Backport 24c34a1 from #53210

@unknwon unknwon merged commit 947b271 into 5.0 Jun 14, 2023
@unknwon unknwon deleted the backport-53210-to-5.0 branch June 14, 2023 21:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants