Skip to content
Snippets Groups Projects
Commit 17faf822 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Add detailed deployment status

parent 813437d7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -8,7 +8,7 @@ class BuildDetailsEntity < JobEntity
expose :user, using: UserEntity
expose :runner, using: RunnerEntity
expose :pipeline, using: PipelineEntity
expose :deployment_status, with: DetailedStatusEntity
expose :deployment_status, with: DetailedDeploymentStatusEntity
 
expose :metadata, using: BuildMetadataEntity
 
Loading
Loading
# frozen_string_literal: true
class DetailedDeploymentStatusEntity < Grape::Entity
include RequestAwareEntity
expose :environment_text_for_pipeline
expose :environment_text_for_job
expose :environment_path
expose :deployment_path
expose :environment_name
expose :metrics_url
expose :metrics_monitoring_url
expose :stop_url
expose :external_url
expose :external_url_formatted
expose :deployed_at
expose :deployed_at_formatted
end
Loading
Loading
@@ -32,10 +32,4 @@ class DetailedStatusEntity < Grape::Entity
expose :action_method, as: :method
expose :action_button_title, as: :button_title
end
expose :deployment, if: -> (status, _) { status.has_deployment? } do
expose :environment_text
expose :environment_path
expose :deployment_path
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment