92ac94c26e
Instead of `finished_at` attribute use `deployed_at` methods which also takes into account the deployment status. Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/56130.
10 lines
283 B
Ruby
10 lines
283 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DeploymentSerializer < BaseSerializer
|
|
entity DeploymentEntity
|
|
|
|
def represent_concise(resource, opts = {})
|
|
opts[:only] = [:iid, :id, :sha, :created_at, :deployed_at, :tag, :last?, :id, ref: [:name]]
|
|
represent(resource, opts)
|
|
end
|
|
end
|