Conversation
2edffa7 to
f461136
Compare
**Why**: To make the style more consistent with the rest of the site and move away from modal popups. **How**: Create new routes for user registration cancellation. Update the cancel partial that triggered the javascript popup and replace the links to point to the new page. Add a new tracking event.
7a2ebce to
8ccd009
Compare
| @@ -1,4 +1,6 @@ | |||
| class UsersController < ApplicationController | |||
There was a problem hiding this comment.
Unrelated to this change, but worth noting that moving this into the account reset namespace may be a good refactor. Confusing to have this controller out here, makes you think this is the controller for the "delete account" button on the account page.
There was a problem hiding this comment.
Ah, I'm misreading this. This is actually for cancelling during account setup, ignore the above
| end | ||
|
|
||
| def ensure_in_setup | ||
| redirect_to root_url if !session[:user_confirmation_token] && two_factor_enabled |
There was a problem hiding this comment.
Why are we checking for the user confirmation token in the session? What happens if we remove that here?
There was a problem hiding this comment.
two_factor_enabled needs to have a user but in the password screen it won't have one.
There was a problem hiding this comment.
I finally figured this out and posted some suggestions that may make this easier to follow in Slack. Those are take it or leave it though.
| end | ||
|
|
||
| context 'with js', js: true do | ||
| context 'sp loa1' do |

Why: To make the style more consistent with the rest of the site and move away from modal popups.
How: Create new routes for user registration cancellation. Update the cancel partial that triggered the javascript popup and replace the links to point to the new page. Add a new tracking event.
Hi! Before submitting your PR for review, and/or before merging it, please
go through the checklists below. These represent the more critical elements
of our code quality guidelines. The rest of the list can be found in
CONTRIBUTING.md
Controllers
authenticated, make sure to add
before_action :confirm_two_factor_authenticatedas the first callback.
Database
Unsafe migrations are implemented over several PRs and over several
deploys to avoid production errors. The strong_migrations gem
will warn you about unsafe migrations and has great step-by-step instructions
for various scenarios.
Indexes were added if necessary. This article provides a good overview
of indexes in Rails.
Verified that the changes don't affect other apps (such as the dashboard)
When relevant, a rake task is created to populate the necessary DB columns
in the various environments right before deploying, taking into account the users
who might not have interacted with this column yet (such as users who have not
set a password yet)
Migrations against existing tables have been tested against a copy of the
production database. See LG-228 Make migrations safer and more resilient #2127 for an example when a migration caused deployment
issues. In that case, all the migration did was add a new column and an index to
the Users table, which might seem innocuous.
Encryption
Routes
state or result in destructive behavior).
Session
user_sessionhelperinstead of the
sessionhelper so the data does not persist beyond the user'ssession.
Testing
and invalid inputs.