Have get_parent_images not join on placements

The only case that needs the placements is in verbs, for which we use a new method
This commit is contained in:
Joseph Schorr 2016-06-03 13:33:15 -04:00
parent 8064419715
commit 9a747ca6a0
2 changed files with 34 additions and 5 deletions

View file

@ -37,7 +37,8 @@ def _open_stream(formatter, namespace, repository, tag, synthetic_image_id, imag
# For performance reasons, we load the full image list here, cache it, then disconnect from
# the database.
with database.UseThenDisconnect(app.config):
image_list = list(model.image.get_parent_images(namespace, repository, repo_image))
image_list = list(model.image.get_parent_images_with_placements(namespace, repository,
repo_image))
image_list.insert(0, repo_image)
def get_image_json(image):