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:
Diffstat (limited to 'app/models/environment_status.rb')
-rw-r--r--app/models/environment_status.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/environment_status.rb b/app/models/environment_status.rb
index 7687bc2be60..f31615f2b3b 100644
--- a/app/models/environment_status.rb
+++ b/app/models/environment_status.rb
@@ -79,7 +79,7 @@ class EnvironmentStatus
private
- PAGE_EXTENSIONS = /\A\.(s?html?|php|asp|cgi|pl)\z/i.freeze
+ PAGE_EXTENSIONS = /\A\.(s?html?|php|asp|cgi|pl)\z/i
def deployment_metrics
@deployment_metrics ||= DeploymentMetrics.new(project, deployment)
@@ -102,7 +102,6 @@ class EnvironmentStatus
return [] unless pipeline
environments = pipeline.environments_in_self_and_project_descendants.includes(:project)
- environments = environments.available if Feature.disabled?(:review_apps_redeploy_mr_widget, mr.project)
environments.map do |environment|
next unless Ability.allowed?(user, :read_environment, environment)