Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
fce3a5356f34
Commit
7b0e7973
authored
Jul 14, 2017
by
Grzegorz Bizon
Browse files
Memoize result of checking container images on project
parent
c718042d07b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
fce3a535
...
@@ -486,7 +486,7 @@ def container_registry_url
...
@@ -486,7 +486,7 @@ def container_registry_url
end
end
def
has_container_registry_tags?
def
has_container_registry_tags?
container_repositories
.
to_a
.
any?
(
&
:has_tags?
)
||
@images
||=
container_repositories
.
to_a
.
any?
(
&
:has_tags?
)
||
has_root_container_repository_tags?
has_root_container_repository_tags?
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment