Switch get repo API to use a single list tags query
Should make things faster since the join occurs on the database side
This commit is contained in:
parent
d86b0254b3
commit
ab2f044331
4 changed files with 48 additions and 15 deletions
|
@ -44,7 +44,7 @@ class ListRepositoryTags(RepositoryParamResource):
|
|||
tag_info['end_ts'] = tag.lifetime_end_ts
|
||||
|
||||
if tag.id in manifest_map:
|
||||
tag_info['manifest_digest'] = manifest_map[tag.id].digest
|
||||
tag_info['manifest_digest'] = manifest_map[tag.id]
|
||||
|
||||
return tag_info
|
||||
|
||||
|
|
Reference in a new issue