Skip to content

Commit 05be6f7

Browse files
committed
Removed limitations for faq visibility
1 parent fa13a9c commit 05be6f7

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

app/controllers/state_file/faq_controller.rb

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ class StateFile::FaqController < ApplicationController
22
layout "state_file"
33

44
def index
5-
years_to_show = filing_years_to_show # calculate once per request
65
visible_state_code_names = StateFile::StateInformationService.state_code_to_name_map
7-
.filter { |state_code, _| (years_to_show - StateFile::StateInformationService.filing_years(state_code)).empty? }
86
.transform_values { |state_name| { state_name: } }
97
visible_state_code_names.slice!(params[:us_state]) unless params[:us_state] == "us"
108
product_types = visible_state_code_names.keys.map do |code|
@@ -20,10 +18,6 @@ def index
2018
end
2119

2220
def show
23-
if params[:us_state] == 'ny'
24-
redirect_to state_landing_page_path(us_state: "ny")
25-
return
26-
end
2721
@section_key = params[:section_key]
2822
@faq_category = FaqCategory.find_by(slug: @section_key, product_type: FaqCategory.state_to_product_type(params[:us_state]))
2923

@@ -32,6 +26,7 @@ def show
3226

3327
private
3428

29+
# @deprecated FYST is retired now, show all categories all the time!
3530
def filing_years_to_show
3631
faq_show_start = Rails.configuration.state_file_show_faq_date_start
3732
faq_show_end = Rails.configuration.state_file_show_faq_date_end
@@ -48,12 +43,10 @@ def filing_years_to_show
4843
# show states that were open this year and will open next year
4944
[tax_year, tax_year + 1]
5045
end
46+
elsif app_time > faq_show_end
47+
[tax_year + 1]
5148
else
52-
if app_time > faq_show_end
53-
[tax_year + 1]
54-
else
55-
[tax_year]
56-
end
49+
[tax_year]
5750
end
5851
end
5952
end

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Application < Rails::Application
128128
config.state_file_end_of_new_intakes = et.parse('2025-10-22 23:59:59')
129129
config.state_file_end_of_in_progress_intakes = et.parse('2025-10-31 23:59:59')
130130
config.state_file_show_faq_date_start = pt.parse('2024-12-10 00:00:00')
131-
config.state_file_show_faq_date_end = pt.parse('2025-11-18 23:59:59')
131+
config.state_file_show_faq_date_end = pt.parse('2025-11-15 23:59:59')
132132

133133
config.allow_magic_verification_code = (Rails.env.demo? || Rails.env.development? || Rails.env.heroku? || Rails.env.staging?)
134134
config.allow_magic_ssn = (Rails.env.demo? || Rails.env.development? || Rails.env.heroku? || Rails.env.staging?)

0 commit comments

Comments
 (0)