summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-21 20:18:12 +0900
committerShinya Maeda <shinya@gitlab.com>2018-11-21 20:18:12 +0900
commit5a6e6a816d382514b3432f109a2af7477eb13744 (patch)
treed72b6bb2b67b9b19d3a68bb89e32ab83b36f7829
parent91727f7d1f70fb850d92428c6a84038089e1260a (diff)
downloadgitlab-ce-remove-deployment-status-hack-from-backend.tar.gz
Remove deployment status hack from backendremove-deployment-status-hack-from-backend
-rw-r--r--app/models/environment_status.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/models/environment_status.rb b/app/models/environment_status.rb
index 7078496ff52..3c892165fce 100644
--- a/app/models/environment_status.rb
+++ b/app/models/environment_status.rb
@@ -43,22 +43,6 @@ class EnvironmentStatus
.merge_request_diff_files.where(deleted_file: false)
end
- ##
- # Since frontend has not supported all statuses yet, BE has to
- # proxy some status to a supported status.
- def status
- return unless deployment
-
- case deployment.status
- when 'created'
- 'running'
- when 'canceled'
- 'failed'
- else
- deployment.status
- end
- end
-
private
PAGE_EXTENSIONS = /\A\.(s?html?|php|asp|cgi|pl)\z/i.freeze