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:
Joseph Schorr 2017-04-13 16:34:14 -04:00
parent d86b0254b3
commit ab2f044331
4 changed files with 48 additions and 15 deletions

View file

@ -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