Add additional tests for repo visibility and further simplify the query for perf
This commit is contained in:
parent
e8cb359d96
commit
c9daf7d8a9
3 changed files with 104 additions and 18 deletions
|
@ -203,7 +203,7 @@ class RepositoryList(ApiResource):
|
|||
'namespace': repo_obj.namespace_user.username,
|
||||
'name': repo_obj.name,
|
||||
'description': repo_obj.description,
|
||||
'is_public': repo_obj.visibility.name == 'public'
|
||||
'is_public': repo_obj.visibility_id == model.repository.get_public_repo_visibility(),
|
||||
}
|
||||
|
||||
repo_id = repo_obj.id
|
||||
|
|
Reference in a new issue