-
Notifications
You must be signed in to change notification settings - Fork 127
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
Stop returning redirect_url from LinkSentPollController for IPP #11821
base: matthinz/15479-nil-zipcode-part-1
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,7 +218,7 @@ | |
get :show | ||
|
||
expect(response.status).to eq(200) | ||
expect(JSON.parse(response.body)).to include('redirect' => idv_in_person_url) | ||
expect(JSON.parse(response.body)).not_to include('redirect' => idv_in_person_url) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd maybe think we could get rid of this entire "in-person" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think that is reasonable. |
||
end | ||
end | ||
end | ||
|
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.
Should we remove all other references to
user_has_establishing_in_person_enrollment?
(including the method definition) in this file?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.
Good question. It looks like it is used to decide whether to return
200 OK
or202 Accepted
--let me dig in and see what the actual difference in handling those areThere 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.
Ah, it looks like for anything other than
200
,410
and429
, we just keep polling, so we likely want to start returning a200
rather than a202
in this case. I will make that change over in #11820. We'll likely still want thisuser_has_establishing_in_person_enrollment?
method for that.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 thought the idea with #11820 was that a user with establishing in-person enrollment would no longer be able to reach the link sent screen? (i.e. making it a moot point what would be returned by the polling endpoint in that scenario)
Edit: Although I suppose we'd want to be conscious of 50/50 states and someone already being on the screen.