diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-10-03 17:00:09 +0100 |
---|---|---|
committer | Steve Azzopardi <steveazz@outlook.com> | 2018-10-04 10:22:31 +0200 |
commit | 295b0466b38f261ad10be72e18c0915f4f646379 (patch) | |
tree | c3998dd3c1005cabb3441867c4f73e0ea3acbeba /app/serializers/build_details_entity.rb | |
parent | 32bba60c63748aec0fe4f099d71117b031e660cc (diff) | |
download | gitlab-ce-295b0466b38f261ad10be72e18c0915f4f646379.tar.gz |
Removes icon key from job endpoint
This was added because we thought we'd need
to render the environment status but we
already have this information in the
build status
Diffstat (limited to 'app/serializers/build_details_entity.rb')
-rw-r--r-- | app/serializers/build_details_entity.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/serializers/build_details_entity.rb b/app/serializers/build_details_entity.rb index c85b1790e73..3d508a9a407 100644 --- a/app/serializers/build_details_entity.rb +++ b/app/serializers/build_details_entity.rb @@ -1,10 +1,6 @@ # frozen_string_literal: true class BuildDetailsEntity < JobEntity - include EnvironmentHelper - include RequestAwareEntity - include CiStatusHelper - expose :coverage, :erased_at, :duration expose :tag_list, as: :tags expose :has_trace?, as: :has_trace @@ -15,10 +11,6 @@ class BuildDetailsEntity < JobEntity expose :deployment_status, if: -> (*) { build.has_environment? } do expose :deployment_status, as: :status - expose :icon do |build| - ci_label_for_status(build.status) - end - expose :persisted_environment, as: :environment, with: EnvironmentEntity end |