-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
3013: Consolidate users #3050
3013: Consolidate users #3050
Conversation
if main_user.nil? | ||
attrs = user.attributes.except('id').merge(discarded_at: nil) | ||
# null constraint on name for User table doesn't exist for Partner User table | ||
attrs['name'] ||= "CHANGEME" |
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.
attrs['name'] ||= "CHANGEME" | |
attrs['name'] ||= "CHANGEME" |
Could we guess the name using the email?
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.
@dorner nice work! I combed over the code and it looks pretty solid. I'am going to pull down the branch and test this on a copy of production as well.
@dorner I noticed a few things when testing.
Otherwise, I didn't see any other issues with this release. I think it is important though we communicate with our banks and partners that the login page is going to be different in advance. |
@edwinthinks Updated! New page looks like this: |
8d2fbdb
to
fc99140
Compare
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! This looks great! I'll probably want to set some messaging up before we make the release with this big change.
… warning on confirmation modal
… warning on confirmation modal
… warning on confirmation modal
Resolves #3013
Description
This change accomplishes the following:
partner_id
to the User model.This change does not add the
pundit
androlify
gems, which would be an additional feature on top of this to enable things like partner admin roles.One thing I'm unsure about is if partner users are given a separate URL somewhere to log in, and if we have to forward that URL to the new single login page.
Type of change
How Has This Been Tested?
Local and unit tests.
Screenshots
TO DO: Run full test suite on CI and fix broken specs