-
Notifications
You must be signed in to change notification settings - Fork 112
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
Refactor: separate controller actions for separate personal key views #1310
Conversation
497593e
to
4285dff
Compare
*WHY**: We were showing the personal key modal in 3 separate places, but redirecting users to a single controller action after all 3, which was kind of confusing.
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.
LGTM
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.
LGTM
if current_user.password_reset_profile.present? | ||
reactivate_profile_path | ||
else | ||
profile_path |
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.
CC says this is not tested.
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.
lgtm % comment
@monfresh darn missed that comment before merging (I thought I refreshed the tab and only saw comments from Zach...but anyway, will add a test for that line in a follow up PR |
WHY: We were showing the personal key modal in 3 separate places, but
redirecting users to a single controller action after all 3, which was
kind of confusing.