Class: Ci::StagePresenter

Inherits:
Gitlab::View::Presenter::Delegated show all
Defined in:
app/presenters/ci/stage_presenter.rb

Constant Summary collapse

PRELOADED_RELATIONS =
[:pipeline, :metadata, :tags, :job_artifacts_archive, :downstream_pipeline].freeze

Instance Method Summary collapse

Methods inherited from Gitlab::View::Presenter::Delegated

#initialize

Methods included from Gitlab::Utils::DelegatorOverride

#delegator_override, #delegator_override_with, #delegator_target, validator, validators, verify!

Methods included from Gitlab::View::Presenter::Base

#__subject__, #can?, #declarative_policy_delegate, #is_a?, #present, #url_builder, #web_path, #web_url

Methods included from Gitlab::Allowable

#can?

Methods included from Gitlab::Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

This class inherits a constructor from Gitlab::View::Presenter::Delegated

Instance Method Details

#latest_ordered_statusesObject


9
10
11
# File 'app/presenters/ci/stage_presenter.rb', line 9

def latest_ordered_statuses
  preload_statuses(stage.statuses.latest_ordered)
end

#retried_ordered_statusesObject


13
14
15
# File 'app/presenters/ci/stage_presenter.rb', line 13

def retried_ordered_statuses
  preload_statuses(stage.statuses.retried_ordered)
end