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-545-add-maryland-address-screen-and-data-model-to-md #4927

Merged

Conversation

DrewProebstel
Copy link
Contributor

@DrewProebstel DrewProebstel commented Oct 29, 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?

  • adds md permanent address page
  • adds related column on md statefile intake
  • changes zipcode validator to ignore "-" used in 9 digit zipcode ie. 12345-6789

How to test?

  • Describe the testing approach taken to verify the changes, including:
  • Rspec tests written
  • manually tested on Heroku
Screenshot 2024-10-30 at 11 45 03 AM ies or output where relevant ## Screenshots (for v ![Screenshot 2024-10-30 at 11 51 52 AM](https://github.com/user-attachments/assets/00759474-b9d2-4ad0-b0b3-7099f42aacd8) isual changes)

@DrewProebstel DrewProebstel changed the title wip FYST-545-add-maryland-address-screen-and-data-model-to-md Oct 29, 2024
Copy link

Heroku app: https://gyr-review-app-4927-987f2c261dd1.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4927 (optionally add --tail)

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.

Looks good! Just a few requested changes

app/models/state_file_md_intake.rb Outdated Show resolved Hide resolved
@@ -91,6 +97,7 @@ class StateFileMdIntake < StateFileBaseIntake
enum eligibility_homebuyer_withdrawal: { unfilled: 0, yes: 1, no: 2 }, _prefix: :eligibility_homebuyer_withdrawal
enum eligibility_homebuyer_withdrawal_mfj: { unfilled: 0, yes: 1, no: 2 }, _prefix: :eligibility_homebuyer_withdrawal_mfj
enum eligibility_home_different_areas: { unfilled: 0, yes: 1, no: 2 }, _prefix: :eligibility_home_different_areas
enum confirmed_permanent_address: { unfilled: 0, yes: 1, no: 2 }, _prefix: :confirmed_permanent_address
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
enum confirmed_permanent_address: { unfilled: 0, yes: 1, no: 2 }, _prefix: :confirmed_permanent_address
enum confirmed_permanent_address: { unfilled: 0, yes: 1, no: 2 }, _prefix: :confirmed_permanent_address
enum permanent_address_outside_md: { unfilled: 0, yes: 1, no: 2 }, _prefix: :permanent_address_outside_md

@@ -118,6 +124,16 @@
spouse_last_name { "Lando" }
end

factory :state_file_md_refund_intake do
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need this factory case? And if you do need i would advise adding it as a trait instead so it would build or overwrite the base intake something more like:

Suggested change
factory :state_file_md_refund_intake do
trait :with_refund do
after(:build) do |intake, evaluator|
intake.direct_file_data.fed_wages = 2_000
intake.direct_file_data.fed_taxable_income = 2_000
intake.direct_file_data.fed_taxable_ssb = 0
intake.direct_file_data.fed_unemployment = 0
end
end

spec/factories/state_file_md_intakes.rb Outdated Show resolved Hide resolved
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.

Looks good! Just that one change and I think you'll have to pull main before merging to resolve the merge conflictt

@@ -1,8 +1,7 @@
module StateFile
module Questions
class MdPermanentAddressController < QuestionsController
include ReturnToReviewConcern
include EligibilityOffboardingConcern

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I think you'll still need include ReturnToReviewConcern though

@DrewProebstel DrewProebstel merged commit b875f31 into main Nov 6, 2024
7 checks passed
@DrewProebstel DrewProebstel deleted the FYST-545-add-maryland-address-screen-and-data-model-to-md branch November 6, 2024 23:35
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