gitlab-org--gitlab-foss/app/serializers/deployment_serializer.rb
Krasimir Angelov 92ac94c26e Replace finished_at with deployed_at for Deployment entity
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.
2019-08-20 12:39:19 +03:00

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