-
Notifications
You must be signed in to change notification settings - Fork 6
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
Revisited add-admin action #241
Conversation
There were a few methods that needed to be considered. In the end, after discussion with @nrobinaubertin and @amandahla I have decided to create a new rake patch - This approach was chosen for a few reasons:
|
Additionally, the previous rake patch to add |
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.
Haven't done a full review, but are we meaning to remove the anonymize_user.patch
file here? Having a full description of the change and the rationale would be good to confirm what we're intending to do and why.
I would name it something like |
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.
A few more comments! It is on good track!
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.
I feel like the PR has out-of-scope changes (like Arturo mentioned). Is it too late to remove some of the changes (in the tests) to move them to another PR ?
Test coverage for 6df0442
Static code analysis report
|
Overview
Created an
add_user
action, which simply creates a user account. Theon_add_admin
method then is responsible for calling this method, and then promoting the user to admin level. This behaviour has effectively been split.Rationale
We want an action to change an existing user to an admin and an action to create a user. And if the user already exists, we don’t want to update the password. If the user doesn’t exist, we can to create the user and generate a random secure password for them.
Juju Events Changes
N/A
Module Changes
N/A
Library Changes
No significant changes, just updates to be consistent with main.
Checklist
src-docs
urgent
,trivial
,complex
)