Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(760)

Issue 61620043: Started working on add/remove user support

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by mattyw
Modified:
10 years, 1 month ago
Reviewers:
mp+205593, dimitern, fwereade, rog
Visibility:
Public.

Description

Started working on add/remove user support The internal api server and client code for user management. > Currently just supports add|remove user. > Removal just means setting an inactive flag on that user which will mean you cannot login as that user. > There are no roles currently. All users have the same full access. > Future MPs will cover user roles and the command line interface. https://code.launchpad.net/~mattyw/juju-core/add_users_first_pass/+merge/205593 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Started working on add/remove user support #

Patch Set 3 : Started working on add/remove user support #

Patch Set 4 : Started working on add/remove user support #

Total comments: 51

Patch Set 5 : Started working on add/remove user support #

Total comments: 13

Patch Set 6 : Started working on add/remove user support #

Total comments: 16

Patch Set 7 : Started working on add/remove user support #

Total comments: 16

Patch Set 8 : Started working on add/remove user support #

Patch Set 9 : Started working on add/remove user support #

Patch Set 10 : Started working on add/remove user support #

Patch Set 11 : Started working on add/remove user support #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -74 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/agent/state.go View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M state/api/deployer/unit.go View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M state/api/keymanager/client_test.go View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
M state/api/params/internal.go View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -22 lines 0 comments Download
M state/api/params/params.go View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
M state/api/provisioner/machine.go View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
A state/api/usermanager/client.go View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A state/api/usermanager/client_test.go View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
A state/api/usermanager/package_test.go View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M state/apiserver/agent/agent_test.go View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M state/apiserver/client/api_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/common/password.go View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/common/password_test.go View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -7 lines 0 comments Download
M state/apiserver/deployer/deployer_test.go View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M state/apiserver/keymanager/keymanager_test.go View 1 2 3 4 5 6 7 6 chunks +6 lines, -5 lines 0 comments Download
M state/apiserver/login_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M state/apiserver/root.go View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
A state/apiserver/usermanager/package_test.go View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
A state/apiserver/usermanager/usermanager.go View 1 2 3 4 5 6 7 1 chunk +106 lines, -0 lines 0 comments Download
A state/apiserver/usermanager/usermanager_test.go View 1 2 3 4 5 6 7 1 chunk +113 lines, -0 lines 0 comments Download
M state/conn_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M state/megawatcher_internal_test.go View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M state/open.go View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M state/service_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M state/state.go View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -5 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M state/user.go View 1 2 3 4 5 6 7 5 chunks +33 lines, -4 lines 0 comments Download
M state/user_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 18
mattyw
Please take a look.
10 years, 2 months ago (2014-02-19 13:39:44 UTC) #1
dimitern
Good direction, but it needs a bit more polishing I think. https://codereview.appspot.com/61620043/diff/50001/state/api/usermanager/client.go File state/api/usermanager/client.go (right): ...
10 years, 2 months ago (2014-02-25 10:50:58 UTC) #2
dimitern
Good direction, but it needs a bit more polishing I think. https://codereview.appspot.com/61620043/diff/50001/state/api/usermanager/client.go File state/api/usermanager/client.go (right): ...
10 years, 2 months ago (2014-02-25 10:50:58 UTC) #3
fwereade
dimitern's comments look sound, WIPping this for now https://codereview.appspot.com/61620043/diff/50001/state/apiserver/root.go File state/apiserver/root.go (right): https://codereview.appspot.com/61620043/diff/50001/state/apiserver/root.go#newcode110 state/apiserver/root.go:110: // ...
10 years, 2 months ago (2014-02-27 13:16:14 UTC) #4
mattyw
Just pushing updates to this branch https://codereview.appspot.com/61620043/diff/50001/state/api/usermanager/client.go File state/api/usermanager/client.go (right): https://codereview.appspot.com/61620043/diff/50001/state/api/usermanager/client.go#newcode1 state/api/usermanager/client.go:1: // Copyright 2013 ...
10 years, 2 months ago (2014-02-27 15:15:22 UTC) #5
mattyw
Please take a look.
10 years, 2 months ago (2014-02-27 15:18:12 UTC) #6
fwereade
several comments https://codereview.appspot.com/61620043/diff/70001/state/api/usermanager/client_test.go File state/api/usermanager/client_test.go (right): https://codereview.appspot.com/61620043/diff/70001/state/api/usermanager/client_test.go#newcode34 state/api/usermanager/client_test.go:34: Can we get a SetPassword api as ...
10 years, 2 months ago (2014-03-06 12:11:34 UTC) #7
mattyw
Please take a look. https://codereview.appspot.com/61620043/diff/70001/state/api/usermanager/client_test.go File state/api/usermanager/client_test.go (right): https://codereview.appspot.com/61620043/diff/70001/state/api/usermanager/client_test.go#newcode34 state/api/usermanager/client_test.go:34: On 2014/03/06 12:11:35, fwereade wrote: ...
10 years, 2 months ago (2014-03-07 02:01:21 UTC) #8
fwereade
Nearly there, mostly just trivials. Ping me if anything's unclear, I expect the last review ...
10 years, 2 months ago (2014-03-07 10:00:40 UTC) #9
mattyw
Please take a look. https://codereview.appspot.com/61620043/diff/70001/state/user.go File state/user.go (right): https://codereview.appspot.com/61620043/diff/70001/state/user.go#newcode184 state/user.go:184: func (u *User) IsInactive() bool ...
10 years, 2 months ago (2014-03-07 14:12:12 UTC) #10
fwereade
Trivials and test tweaks only: LGTM with the following assuming you're happy with them. https://codereview.appspot.com/61620043/diff/110001/state/api/deployer/unit.go ...
10 years, 2 months ago (2014-03-07 14:52:31 UTC) #11
mattyw
https://codereview.appspot.com/61620043/diff/110001/state/api/deployer/unit.go File state/api/deployer/unit.go (right): https://codereview.appspot.com/61620043/diff/110001/state/api/deployer/unit.go#newcode65 state/api/deployer/unit.go:65: Entities: []params.EntityPassword{ On 2014/03/07 14:52:32, fwereade wrote: > sorry, ...
10 years, 1 month ago (2014-03-10 13:55:06 UTC) #12
mattyw
Please take a look.
10 years, 1 month ago (2014-03-10 14:10:07 UTC) #13
rog
https://codereview.appspot.com/61620043/diff/110001/state/api/usermanager/client.go File state/api/usermanager/client.go (right): https://codereview.appspot.com/61620043/diff/110001/state/api/usermanager/client.go#newcode38 state/api/usermanager/client.go:38: return *results, err On 2014/03/10 13:55:06, mattyw wrote: > ...
10 years, 1 month ago (2014-03-12 14:03:49 UTC) #14
fwereade
On 2014/03/12 14:03:49, rog wrote: > https://codereview.appspot.com/61620043/diff/110001/state/api/usermanager/client.go > File state/api/usermanager/client.go (right): > > https://codereview.appspot.com/61620043/diff/110001/state/api/usermanager/client.go#newcode38 > ...
10 years, 1 month ago (2014-03-13 11:21:08 UTC) #15
mattyw
Please take a look.
10 years, 1 month ago (2014-03-13 13:40:03 UTC) #16
mattyw
Please take a look.
10 years, 1 month ago (2014-03-13 14:21:58 UTC) #17
mattyw
10 years, 1 month ago (2014-03-13 14:29:53 UTC) #18
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b