-
Notifications
You must be signed in to change notification settings - Fork 111
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
LG-12375 state id controller #10457
LG-12375 state id controller #10457
Conversation
} | ||
end | ||
|
||
# update Idv::DocumentCaptureController.step_info.next_steps to include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the DocumentCaptureController it currently does not include :ipp_address
as a next step. I think it should though since the address step is no longer managed by the FSM and has it's own controller, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think so, but I thought it might be something to address in the pr that adds the update route since this pr doesn't allow you to navigate past the state id page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great so far! Are there feature specs that will need to be updated as a result of this work?
key: :ipp_state_id, | ||
controller: self, | ||
next_steps: [:ipp_address, :ipp_ssn], | ||
preconditions: ->(idv_session:, user:) { user.establishing_in_person_enrollment }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just want to note that the before action; redirect_unless_enrollment
, uses current_user
whereas this precondition is using user
. Is there a difference between these variables?
pii_from_user.delete(:zipcode) | ||
end | ||
|
||
def copy_state_id_address_to_residential_address(pii_from_user) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here, I don't think this method is being called anywhere?
redirect_url(step) | ||
end | ||
|
||
def redirect_url(step) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense. Basically if someone is in the FSM, and we have the state_id_controller_enabled, then bump the user over to the controller based page. I think the thing that is throwing me off is that since this is the last step that's using the FSM, how would a user get into the FSM if the state id controller is enabled?
Just thinking out loud, not saying anything about removing this code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a good question. I think the InPersonController allows us to enter the fsm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment about my ignorance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually testing looks good. Way to go!
馃帿 Ticket
Link to the relevant ticket:
LG-12375
馃洜 Summary of changes
This pr adds the GET route for the the controller version of the state id page, as well as the controller, view and specs.
馃摐 Testing Plan
Provide a checklist of steps to confirm the changes.
Testing fsm flow
/in_person/state_id
/in_person_proofing/state_id
Testing controller flow
config/application.yml
file changein_person_state_id_controller_enabled
to truemake update
and thenmake run
/in_person_proofing/state_id
/in_person/state_id
Issuing state
select Floridaid number
Issuing state
select Texasid number
state
select Puerto Rico