Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYST-1122 Part 2: Update statefile tax year to 2024 #4994

Open
wants to merge 9 commits into
base: FYST-1122-update-az-schema-to-ty-24
Choose a base branch
from

Conversation

arinchoi03
Copy link
Contributor

@arinchoi03 arinchoi03 commented Nov 15, 2024

Link to pivotal/JIRA issue

Is PM acceptance required? (delete one)

  • Yes - don't merge until JIRA issue is accepted!

Reminder: merge main into this branch and get green tests before merging to main

What was done?

  • See the previous PR -- I was having incredibly hard time trying to stub out the TAX_YEAR constant that is being set by the Rails.configuration
  • Martha & I discussed how to fix and determined that we might as well update the tax year. First I renamed the 2023 folder for the fixtures to 2024 (so that they could be found correctly based on the current tax year) and then I will be moving the year folder (2024) out so that the structure is flatter & doesn't tie the personas to a tax year.

How to test?

  • Describe the testing approach taken to verify the changes, including:
    • Unit/integration/manual tests
    • Test data used
  • Specify any relevant testing environments used (e.g., development, staging, demo, Heroku).
  • Risk Assessment
    • Risks or side effects associated with the changes and how they were mitigated.
    • Highlight areas that may need extra attention during code review or testing.
    • Paste SQL queries or output where relevant

Screenshots (for visual changes)

  • Before
  • After

Copy link

Heroku app: https://gyr-review-app-4994-6141345ac37e.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4994 (optionally add --tail)

@arinchoi03 arinchoi03 changed the title FYST-1122 Part 2: Update tax year to 2024 FYST-1122 Part 2: Update statefile tax year to 2024 Nov 15, 2024
@arinchoi03
Copy link
Contributor Author

arinchoi03 commented Nov 16, 2024

at fbc72ad all specs were passing ✨
I'm expecting some failures now but hoping they'll be easy cleanups / updating references

@@ -18,6 +18,8 @@ def document

def determine_default_schema_version_by_tax_year
case @submission.tax_return&.year || @submission.data_source&.tax_return_year
when 2024 # TODO: update with 2024 schema when available
"2023v5.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure where we can get this

@@ -19,7 +19,7 @@
#
FactoryBot.define do
factory :az322_contribution do
date_of_contribution_year { "2023" }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update year dynamically using the rails config here

@@ -147,60 +147,60 @@
state_file_az_intake: intake,
charity_code: "22345",
charity_name: "Heartland",
date_of_contribution: Date.parse("August 22 2023")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dynamically set the year

allow(Rails.configuration).to receive(:statefile_current_tax_year).and_return 2024
stub_const('DateAccessible::TAX_YEAR', Date.new(2024))
end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was the "fix" i was implementing to get the az feature specs to pass, which didn't work, so taking it out in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file was added in the previous PR (that this branch is based off on)

@@ -535,7 +535,7 @@
context "looking for CTC matches" do
let(:display_type) { Intake::CtcIntake }

context "with a product year of 2023" do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should put these back

@@ -932,7 +932,7 @@
end
end

context "when born on/after Jan 2, 1958 for tax year 2023" do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe need to revisit if I need to make this dynamic

@@ -11,7 +11,7 @@ def step_through_eligibility_screener(us_state:)
choose "state_file_ny_eligibility_out_of_state_income_form_eligibility_part_year_nyc_resident_no"
click_on "Continue"

expect(page).to have_text "In 2023, did you contribute to a 529 college savings account, or did you withdraw funds from a 529 account and use them for non-qualified expenses?"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update to using config here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant