diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /app/presenters/ci/build_presenter.rb | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'app/presenters/ci/build_presenter.rb')
-rw-r--r-- | app/presenters/ci/build_presenter.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/presenters/ci/build_presenter.rb b/app/presenters/ci/build_presenter.rb index 0be684901d5..513fcd90cf8 100644 --- a/app/presenters/ci/build_presenter.rb +++ b/app/presenters/ci/build_presenter.rb @@ -4,16 +4,6 @@ module Ci class BuildPresenter < ProcessablePresenter presents ::Ci::Build, as: :build - def erased_by_user? - # Build can be erased through API, therefore it does not have - # `erased_by` user assigned in that case. - erased? && erased_by - end - - def erased_by_name - erased_by.name if erased_by_user? - end - def status_title(status = detailed_status) if auto_canceled? "Job is redundant and is auto-canceled by Pipeline ##{auto_canceled_by_id}" @@ -33,10 +23,6 @@ module Ci end end - def tooltip_message - "#{build.name} - #{detailed_status.status_tooltip}" - end - def execute_in scheduled? && scheduled_at && [0, scheduled_at - Time.now].max end |