Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authordrew cimino <dcimino@gitlab.com>2019-04-04 21:41:54 +0300
committerdrew cimino <dcimino@gitlab.com>2019-04-12 18:53:21 +0300
commit34243489af3e52ca87d6f1bc578bd9ba4e9d565e (patch)
tree478c5ded9c01a98b8677503d2e41f5daa3ae7e5a /app
parentde44f3e176a1891238f5c79ef5203ab06cbe6927 (diff)
Don't render artifact download links on the project tags page for builds with expired artifacts
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/pipeline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index b81a3cf8362..0b1f119686a 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -686,7 +686,7 @@ module Ci
# We purposely cast the builds to an Array here. Because we always use the
# rows if there are more than 0 this prevents us from having to run two
# queries: one to get the count and one to get the rows.
- @latest_builds_with_artifacts ||= builds.latest.with_artifacts_archive.to_a
+ @latest_builds_with_artifacts ||= builds.latest.with_artifacts_not_expired.to_a
end
def has_test_reports?