From 5a6e6a816d382514b3432f109a2af7477eb13744 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Wed, 21 Nov 2018 20:18:12 +0900 Subject: Remove deployment status hack from backend --- app/models/environment_status.rb | 16 ---------------- 1 file changed, 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 -- cgit v1.2.1