From e02e77722573882c79469f9be3e886c35f61168f Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Fri, 26 Apr 2024 09:27:16 -0700 Subject: [PATCH] fix(webserver): repository_list should only returns active repos --- ee/tabby-webserver/src/service/github_repository_provider.rs | 1 + ee/tabby-webserver/src/service/gitlab_repository_provider.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/ee/tabby-webserver/src/service/github_repository_provider.rs b/ee/tabby-webserver/src/service/github_repository_provider.rs index 544a9e8c51b6..fb78553415fb 100644 --- a/ee/tabby-webserver/src/service/github_repository_provider.rs +++ b/ee/tabby-webserver/src/service/github_repository_provider.rs @@ -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) .map(|x| x.into()) .collect()) } diff --git a/ee/tabby-webserver/src/service/gitlab_repository_provider.rs b/ee/tabby-webserver/src/service/gitlab_repository_provider.rs index 505603ee6b1f..5c4d328d75cd 100644 --- a/ee/tabby-webserver/src/service/gitlab_repository_provider.rs +++ b/ee/tabby-webserver/src/service/gitlab_repository_provider.rs @@ -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) .map(|x| x.into()) .collect()) }