Skip to content

Commit

Permalink
Merge pull request #727 from alphagov/remove-qa-feature-flag
Browse files Browse the repository at this point in the history
Remove qa feature flag
  • Loading branch information
Bevan committed Dec 19, 2018
2 parents 29d0114 + b65f8b3 commit 75c8a7f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions app/controllers/qa_controller.rb
Expand Up @@ -5,8 +5,6 @@ class QaController < ApplicationController
include GdsApi::Helpers

def show
return error_not_found unless ENV["FINDER_FRONTEND_ENABLE_QA"]

redirect_to_finder if finder_page?
raw_finder
end
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/qa_to_content_controller.rb
Expand Up @@ -8,8 +8,6 @@ class QaToContentController < ApplicationController
include GdsApi::Helpers

def show
return error_not_found unless ENV["FINDER_FRONTEND_ENABLE_QA_TO_CONTENT"]

return redirect_to content_url if redirect_to_content?

render "qa_to_content/show"
Expand Down
4 changes: 0 additions & 4 deletions features/support/env.rb
Expand Up @@ -61,7 +61,3 @@
# The :transaction strategy is faster, but might give you threading problems.
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
Cucumber::Rails::Database.javascript_strategy = :truncation

ENV["FINDER_FRONTEND_ENABLE_QA"] = 'true'
# A temporary environment variable acting as a feature flag. This can be removed when the corresponding
# 'return error_not_found unless ENV["FINDER_FRONTEND_ENABLE_QA"]' is removed from the QAController
1 change: 0 additions & 1 deletion spec/controllers/qa_controller_spec.rb
Expand Up @@ -6,7 +6,6 @@
include FixturesHelper
include GovukContentSchemaExamples
render_views
ENV["FINDER_FRONTEND_ENABLE_QA"] = "true"

describe "GET show" do
let(:aaib_reports_finder) { aaib_reports_content_item }
Expand Down
1 change: 0 additions & 1 deletion spec/controllers/qa_to_content_controller_spec.rb
Expand Up @@ -4,7 +4,6 @@
describe QaToContentController, type: :controller do
include FixturesHelper
render_views
ENV["FINDER_FRONTEND_ENABLE_QA_TO_CONTENT"] = "true"

describe "GET show" do
let(:uk_nationals_in_eu_yaml) { uk_nationals_in_eu_config }
Expand Down

0 comments on commit 75c8a7f

Please sign in to comment.