Skip to content

Commit

Permalink
fix(webserver): repository_list should only returns active repos
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Apr 26, 2024
1 parent 5124086 commit e02e777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ impl RepositoryProvider for GithubRepositoryProviderServiceImpl {
.list_github_provided_repositories_by_provider(vec![], None, None, None, None)
.await?
.into_iter()
.filter(|x| x.active)

Check warning on line 195 in ee/tabby-webserver/src/service/github_repository_provider.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/service/github_repository_provider.rs#L195

Added line #L195 was not covered by tests
.map(|x| x.into())
.collect())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ impl RepositoryProvider for GitlabRepositoryProviderServiceImpl {
.list_gitlab_provided_repositories_by_provider(vec![], None, None, None, None)
.await?
.into_iter()
.filter(|x| x.active)

Check warning on line 203 in ee/tabby-webserver/src/service/gitlab_repository_provider.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/service/gitlab_repository_provider.rs#L203

Added line #L203 was not covered by tests
.map(|x| x.into())
.collect())
}
Expand Down

0 comments on commit e02e777

Please sign in to comment.