LG-10530: Improve Verify by Mail controller & route names#9136
LG-10530: Improve Verify by Mail controller & route names#9136
Conversation
214fd31 to
97afce2
Compare
f4d6aa2 to
7b4d60a
Compare
soniaconnolly
left a comment
There was a problem hiding this comment.
It definitely reads better this way! Suggestion for one more thing to rename.
0f1202d to
7282981
Compare
[skip changelog]
Match structure in the gpo_verification_enabled? check
Co-authored-by: Sonia Connolly <sonia.connolly@gsa.gov>
- Add handlers at the new route locations (for the GET routes--the others will PUT/POST to the old paths still) - Don't do any 302 redirecting yet. Actual route changes will come in a future deploy
2447276 to
5d2f930
Compare
config/routes.rb
Outdated
| get '/by_mail/request_letter' => 'by_mail/request_letter#index' | ||
| get '/by_mail/letter_enqueued' => 'by_mail/letter_enqueued#show' | ||
| get '/by_mail/enter_code' => 'by_mail/enter_code#index' |
There was a problem hiding this comment.
I think you need the put routes here too.
There was a problem hiding this comment.
The actual forms all set their action attributes at the old path names (for example, this one) , so no PUT routes are needed here. We WILL need to do a second set of PUT routes when we ultimately rename the routes, but that'll be a different PR
|
Are you going to update the dashboard (cloudwatch-idv-letter-flow.tf) that uses the old event names? |
|
@solipet Yeah I'll do that as part of this ticket. I believe there are a couple of dashboards to update |
soniaconnolly
left a comment
There was a problem hiding this comment.
LGTM! Thanks for all this work!
We renamed the code that is used to verify by mail in #9136. This replaced "GPO" with more descriptive names. This commit removes a few lingering references to GPO. [skip changelog]
We renamed the code that is used to verify by mail in #9136. This replaced "GPO" with more descriptive names. This commit removes a few lingering references to GPO. [skip changelog]
🎫 Ticket
LG-10530
🛠 Summary of changes
This PR is the first in a series that will update GPO-related routes, analytics events, and controllers to better reflect what they do.
In this one, we:
/verify/by_mail/request_letter)Idv::ByMailA future PR will finalize moving GPO routes to the new locations and add redirects from the old paths to the new (to support the 50/50 state during deploy).
Routes
/verify/usps/verify/by_mail/request_letter/verify/come_back_later/verify/by_mail/letter_enqueued/verify/by_mail/verify/by_mail/enter_codeAnalytics events
IdV: USPS address visitedIdV: request letter visitedIdV: come back later visitedIdV: letter enqueued visitedIdV: GPO verification visitedIdV: enter verify by mail code visitedIdV: GPO verification submittedIdV: enter verify by mail code submittedControllers
Idv::ComeBackLaterControllerIdv::ByMail::LetterEnqueuedControllerIdv::GpoControllerIdv::ByMail::RequestLetterControllerIdv::GpoVerifyControllerIdv::ByMail::EnterCodeControllerHelpers
idv_gpo_urlidv_request_letter_urlidv_come_back_later_urlidv_letter_enqueued_urlidv_gpo_verify_urlidv_verify_by_mail_enter_code_url