diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-03-14 13:35:46 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-03-16 12:31:27 +0100 |
commit | a33fbb3c83bb1663fa63ce42ced54926f050b8dc (patch) | |
tree | 93129c624b3370856e1df2df3cc8a40010934717 /app/models | |
parent | 4b249d522c0077113745225fe945d8629c58fa34 (diff) | |
download | gitlab-ce-a33fbb3c83bb1663fa63ce42ced54926f050b8dc.tar.gz |
Render cached pipeline status on project dashboard
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 8c2dadf4659..2ffaaac93f3 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1209,6 +1209,10 @@ class Project < ActiveRecord::Base end end + def pipeline_status + @pipeline_status ||= Ci::PipelineStatus.load_for_project(self) + end + def mark_import_as_failed(error_message) original_errors = errors.dup sanitized_message = Gitlab::UrlSanitizer.sanitize(error_message) |