Merge pull request #2544 from coreos-inc/hidden

Make sure to filter hidden tags from the active tags query
This commit is contained in:
josephschorr 2017-04-13 19:31:59 -04:00 committed by GitHub
commit 218acaffbf

View file

@ -102,7 +102,7 @@ def list_active_repo_tags(repo):
query = _tag_alive(RepositoryTag
.select(RepositoryTag, Image, TagManifest.digest)
.join(Image)
.where(RepositoryTag.repository == repo)
.where(RepositoryTag.repository == repo, RepositoryTag.hidden == False)
.switch(RepositoryTag)
.join(TagManifest, JOIN_LEFT_OUTER))