From 77eff52afa379d653c47ecc64e75779a330be5e1 Mon Sep 17 00:00:00 2001 From: Peter Leitzen Date: Thu, 10 Jan 2019 18:50:14 +0100 Subject: Remove `error_tracking` feature flag We introduced the feature flag `error_tracking` to test the Sentry MVC safely. After the successful test, we remove it again. --- app/controllers/projects/error_tracking_controller.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/projects/error_tracking_controller.rb b/app/controllers/projects/error_tracking_controller.rb index 4596b6c91f2..9e403e1d25b 100644 --- a/app/controllers/projects/error_tracking_controller.rb +++ b/app/controllers/projects/error_tracking_controller.rb @@ -1,9 +1,7 @@ # frozen_string_literal: true class Projects::ErrorTrackingController < Projects::ApplicationController - before_action :check_feature_flag! before_action :authorize_read_sentry_issue! - before_action :push_feature_flag_to_frontend POLLING_INTERVAL = 10_000 @@ -43,12 +41,4 @@ class Projects::ErrorTrackingController < Projects::ApplicationController .new(project: project, user: current_user) .represent(errors) end - - def check_feature_flag! - render_404 unless Feature.enabled?(:error_tracking, project) - end - - def push_feature_flag_to_frontend - push_frontend_feature_flag(:error_tracking, current_user) - end end -- cgit v1.2.3