Skip to content

LG-10530: Improve Verify by Mail controller & route names#9136

Merged
matthinz merged 34 commits intomainfrom
matthinz/10530-nobody-knows-what-gpo-is
Sep 8, 2023
Merged

LG-10530: Improve Verify by Mail controller & route names#9136
matthinz merged 34 commits intomainfrom
matthinz/10530-nobody-knows-what-gpo-is

Conversation

@matthinz
Copy link
Contributor

@matthinz matthinz commented Sep 1, 2023

🎫 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:

  • Add new routes where we eventually want the "real" GPO routes to point (e.g. /verify/by_mail/request_letter)
  • Rename GPO-related analytics events to be more consistent
  • Rename and move GPO-related controllers into Idv::ByMail
  • Update naming of GPO-related url & path helpers

A 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

Old New
/verify/usps /verify/by_mail/request_letter
/verify/come_back_later /verify/by_mail/letter_enqueued
/verify/by_mail /verify/by_mail/enter_code

Analytics events

Old New
IdV: USPS address visited IdV: request letter visited
IdV: come back later visited IdV: letter enqueued visited
IdV: GPO verification visited IdV: enter verify by mail code visited
IdV: GPO verification submitted IdV: enter verify by mail code submitted

Controllers

Old New
Idv::ComeBackLaterController Idv::ByMail::LetterEnqueuedController
Idv::GpoController Idv::ByMail::RequestLetterController
Idv::GpoVerifyController Idv::ByMail::EnterCodeController

Helpers

Old New
idv_gpo_url idv_request_letter_url
idv_come_back_later_url idv_letter_enqueued_url
idv_gpo_verify_url idv_verify_by_mail_enter_code_url

@matthinz matthinz force-pushed the matthinz/10530-nobody-knows-what-gpo-is branch 3 times, most recently from 214fd31 to 97afce2 Compare September 6, 2023 16:45
@matthinz matthinz force-pushed the matthinz/10530-nobody-knows-what-gpo-is branch from f4d6aa2 to 7b4d60a Compare September 6, 2023 20:58
@matthinz matthinz changed the title WIP: LG-10530: Improve Verify by Mail controller & route names LG-10530: Improve Verify by Mail controller & route names Sep 6, 2023
@matthinz matthinz marked this pull request as ready for review September 6, 2023 22:13
@matthinz matthinz requested a review from a team September 6, 2023 22:13
Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

It definitely reads better this way! Suggestion for one more thing to rename.

@matthinz matthinz force-pushed the matthinz/10530-nobody-knows-what-gpo-is branch from 0f1202d to 7282981 Compare September 7, 2023 16:49
@aduth aduth mentioned this pull request Sep 8, 2023
2 tasks
@matthinz matthinz force-pushed the matthinz/10530-nobody-knows-what-gpo-is branch from 2447276 to 5d2f930 Compare September 8, 2023 19:18
config/routes.rb Outdated
Comment on lines +408 to +410
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'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need the put routes here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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

@solipet
Copy link
Contributor

solipet commented Sep 8, 2023

Are you going to update the dashboard (cloudwatch-idv-letter-flow.tf) that uses the old event names?

@matthinz
Copy link
Contributor Author

matthinz commented Sep 8, 2023

@solipet Yeah I'll do that as part of this ticket. I believe there are a couple of dashboards to update

Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for all this work!

@matthinz matthinz merged commit a24506e into main Sep 8, 2023
@matthinz matthinz deleted the matthinz/10530-nobody-knows-what-gpo-is branch September 8, 2023 23:09
@aduth aduth mentioned this pull request Sep 11, 2023
jmhooper added a commit that referenced this pull request Oct 13, 2023
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]
jmhooper added a commit that referenced this pull request Oct 13, 2023
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]
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.

3 participants