Add the image view page with the changes view, filterable by typing into a field. Still needs pagination or some other mechanism for getting an overview
This commit is contained in:
parent
8274d9af97
commit
0afea3a779
7 changed files with 239 additions and 7 deletions
|
@ -254,6 +254,18 @@ def get_repository(namespace_name, repository_name):
|
|||
return None
|
||||
|
||||
|
||||
def get_repo_image(namespace_name, repository_name, image_id):
|
||||
joined = Image.select().join(Repository)
|
||||
query = joined.where(Repository.name == repository_name,
|
||||
Repository.namespace == namespace_name,
|
||||
Image.docker_image_id == image_id).limit(1)
|
||||
result = list(query)
|
||||
if not result:
|
||||
return None
|
||||
|
||||
return result[0]
|
||||
|
||||
|
||||
def repository_is_public(namespace_name, repository_name):
|
||||
joined = Repository.select().join(Visibility)
|
||||
query = joined.where(Repository.namespace == namespace_name,
|
||||
|
|
Reference in a new issue