Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Shushlin <vshushlin@gitlab.com>2019-02-26 22:13:09 +0300
committerStan Hu <stanhu@gmail.com>2019-02-26 22:13:09 +0300
commit25c10abb80799e24e616e2bb8c0081096b201c29 (patch)
treec602b75234cd3abdb50cb62a46d539bdb6cfa5b8 /app/serializers/environment_entity.rb
parent9812006568061f0afd8dfb146920e526877d4d9b (diff)
Add name_without_type to environments.json
It's needed to show shorter names in environments "folders"
Diffstat (limited to 'app/serializers/environment_entity.rb')
-rw-r--r--app/serializers/environment_entity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/environment_entity.rb b/app/serializers/environment_entity.rb
index 4a7d13915dd..76248e6470e 100644
--- a/app/serializers/environment_entity.rb
+++ b/app/serializers/environment_entity.rb
@@ -8,6 +8,7 @@ class EnvironmentEntity < Grape::Entity
expose :state
expose :external_url
expose :environment_type
+ expose :name_without_type
expose :last_deployment, using: DeploymentEntity
expose :stop_action_available?, as: :has_stop_action