Skip to content

LG-10252 Start renaming throttled routes#8886

Merged
soniaconnolly merged 11 commits intomainfrom
sonia-lg-10252-start-renaming-throttled-routes
Jul 31, 2023
Merged

LG-10252 Start renaming throttled routes#8886
soniaconnolly merged 11 commits intomainfrom
sonia-lg-10252-start-renaming-throttled-routes

Conversation

@soniaconnolly
Copy link
Contributor

@soniaconnolly soniaconnolly commented Jul 27, 2023

🎫 Ticket

LG-10252

🛠 Summary of changes

  • Add route /session/errors/rate_limited to replace /session/errors/throttled in a future PR.
  • Rename method param based_on_throttle to based_on_limiter in SessionErrorsController
  • Rename two throttled.html.erb templates to rate_limited.html.erb

📜 Testing Plan

Automated tests.
Create an account, navigate to /verify/session/errors/rate_limited, expect it to look just like /verify/session/errors/throttled

@soniaconnolly soniaconnolly requested a review from a team July 27, 2023 21:39
config/routes.rb Outdated
Comment on lines 370 to 371
get '/session/errors/throttled' => 'session_errors#throttled'
get '/session/errors/rate_limited' => 'session_errors#throttled'
Copy link
Contributor

Choose a reason for hiding this comment

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

You can probably go ahead and rename the action in SessionErrorsController as well?

Suggested change
get '/session/errors/throttled' => 'session_errors#throttled'
get '/session/errors/rate_limited' => 'session_errors#throttled'
get '/session/errors/throttled' => 'session_errors#rate_limited'
get '/session/errors/rate_limited' => 'session_errors#rate_limited'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. bca4111 There are also some javascript references to 'throttled' I'm not sure how to change. Maybe we can take a look on Monday.

@soniaconnolly soniaconnolly requested review from a team and matthinz July 31, 2023 22:09
Comment on lines 92 to +94
this.trackEvent('IdV: Link sent capture doc polling complete', {
isCancelled: result === ResultType.CANCELLED,
isThrottled: result === ResultType.THROTTLED,
isRateLimited: result === ResultType.RATE_LIMITED,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@R-Ornelas one more throttle-related analytics change. 'IdV: Link sent capture doc polling complete' argument is now isRateLimited, formerly isThrottled.

@soniaconnolly soniaconnolly merged commit f3d1a46 into main Jul 31, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-10252-start-renaming-throttled-routes branch July 31, 2023 23:12
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