Change tag history call in OCI to not load the contents of the manifest

Just in case that load is slow on the DB
This commit is contained in:
Joseph Schorr 2019-03-08 14:59:33 -05:00
parent 0d6343871e
commit 2027d13d2b
3 changed files with 8 additions and 6 deletions

View file

@ -41,9 +41,6 @@ def _tag_dict(tag):
if tag.manifest:
tag_info['is_manifest_list'] = tag.manifest.is_manifest_list
if 'size' not in tag_info:
tag_info['size'] = tag.manifest.layers_compressed_size
if tag.lifetime_start_ts > 0:
last_modified = format_date(datetime.utcfromtimestamp(tag.lifetime_start_ts))
tag_info['last_modified'] = last_modified