Skip to content

Remote repositories: filter by vcs provider when deleting #12015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 20, 2025

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Feb 20, 2025

This wasn't a problem since we are filtering by account, and the account can only have one type of vcs repositories, but just for consistency.

@stsewd stsewd requested a review from a team as a code owner February 20, 2025 19:15
@stsewd stsewd requested a review from humitos February 20, 2025 19:15
@ericholscher
Copy link
Member

I also don't fully understand this change -- is there more context in an issue somewhere?

@stsewd
Copy link
Member Author

stsewd commented Mar 19, 2025

The current filtering is wrong, we are excluding all remote repositories that belong to a provider, but we aren't filtering by the type of provider. This fixes that by filtering the whole queryset by the type of provider, and then excluding the remote repositories we want to keep.

Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use a test, if it's not super painful to write. Since this seems to be fixing a bug, and didn't hit any tests.

@stsewd stsewd merged commit 40f7f02 into main Mar 20, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Needs review to Done in 📍Roadmap Mar 20, 2025
@stsewd stsewd deleted the fix-filtering-vcs branch March 20, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants