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

TBE-44 Restructure the fyst test directories to clearly denote tax year and state #4584

Conversation

mrotondo
Copy link
Contributor

@mrotondo mrotondo commented Jun 8, 2024

Link to pivotal/JIRA issue

PM Acceptance Required?

  • No, this can be merged after code review acceptance

What was done?

  • Moved the existing federal return XMLs into spec/fixtures/state_file/fed_return_xmls/{az, ny}
  • Renamed them to remove fed_return_, _ny and _az
  • Changed the implementation of the XMLReturnSampleService to load XMLs from the new directory structure into a hash structure that mirrors it
  • Internal user-facing: Changed the implementation of StateFilePagesController (the list of fake returns to "transfer") so that it only shows returns from the current tax year and the selected state for the current intake
  • Alternatives considered

How to test?

  • Along with seeing automated tests pass, I manually verified the change to the fake returns page, and confirmed that they are still loaded correctly and that our stored federal submission IDs are loaded correctly when applicable
  • All changes to the fake data transfer page can be viewed and tested on this PR's heroku instance
  • Risk Assessment
    • We don't expose these returns externally, and aside from our automated tests, they are only used in the internal-only fake transfer page, so there should be no risk to this change

Screenshots (for visual changes)

  • Before (showing the page for an AZ intake as an example, but NY would show both NY & AZ returns as well)
image
  • After (showing the page for an AZ intake as an example, but NY would show only NY returns)
image

Copy link

github-actions bot commented Jun 8, 2024

Heroku app: https://gyr-review-app-4584-9d022c1e76c1.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4584 (optionally add --tail)

@mrotondo mrotondo changed the title Restructure the fyst test directories to clearly denote tax year and state TBE-44 Restructure the fyst test directories to clearly denote tax year and state Jun 13, 2024
Copy link
Contributor

@embarnard embarnard left a comment

Choose a reason for hiding this comment

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

LGTM!

@embarnard embarnard force-pushed the TBE-44-Restructure-the-FYST-test-directories-to-clearly-denote-tax-year-and-State branch from a65534a to 1f89aa2 Compare June 18, 2024 19:10
@embarnard embarnard merged commit 0082cab into main Jun 18, 2024
7 checks passed
@embarnard embarnard deleted the TBE-44-Restructure-the-FYST-test-directories-to-clearly-denote-tax-year-and-State branch June 18, 2024 19:17
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.

2 participants