Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(114)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 10447047: state/apiserver: logging in changes the API

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by rog
Modified:
12 years, 6 months ago
Reviewers:
mue , mp+170939, fwereade
Visibility:
Public.
state/apiserver: logging in changes the API This is a step towards serving just the API that each client is supposed to see. For the time being, we still have one big root object, but this will be split up in subsequent CLs. https://code.launchpad.net/~rogpeppe/juju-core/320-apiserver-login-choose-api/+merge/170939 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/apiserver: logging in changes the API #

Total comments: 3
Created: 12 years, 6 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -136 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/config/config_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/admin.go View 1 chunk +78 lines, -3 lines 1 comment Download
M state/apiserver/apiserver.go View 2 chunks +8 lines, -7 lines 2 comments Download
M state/apiserver/common/interfaces.go View 1 chunk +0 lines, -4 lines 0 comments Download
M state/apiserver/login_test.go View 1 chunk +2 lines, -4 lines 0 comments Download
M state/apiserver/machine/agent.go View 1 chunk +0 lines, -3 lines 0 comments Download
M state/apiserver/machine/agent_test.go View 1 chunk +0 lines, -9 lines 0 comments Download
M state/apiserver/machine/common_test.go View 1 chunk +0 lines, -4 lines 0 comments Download
M state/apiserver/machine/machiner.go View 1 chunk +0 lines, -3 lines 0 comments Download
M state/apiserver/machine/machiner_test.go View 1 chunk +0 lines, -9 lines 0 comments Download
M state/apiserver/root.go View 5 chunks +12 lines, -51 lines 0 comments Download
M state/apiserver/user.go View 2 chunks +0 lines, -38 lines 0 comments Download
Total messages: 4
|
rog
Please take a look.
12 years, 6 months ago (2013年06月22日 08:55:03 UTC) #1
Please take a look.
Sign in to reply to this message.
mue
Nice CL, LGTM. Only one comment. https://codereview.appspot.com/10447047/diff/3001/state/apiserver/admin.go File state/apiserver/admin.go (right): https://codereview.appspot.com/10447047/diff/3001/state/apiserver/admin.go#newcode76 state/apiserver/admin.go:76: // about existing ...
12 years, 6 months ago (2013年06月24日 11:51:35 UTC) #2
Nice CL, LGTM. Only one comment.
https://codereview.appspot.com/10447047/diff/3001/state/apiserver/admin.go
File state/apiserver/admin.go (right):
https://codereview.appspot.com/10447047/diff/3001/state/apiserver/admin.go#ne...
state/apiserver/admin.go:76: // about existing entities.
+1
https://codereview.appspot.com/10447047/diff/3001/state/apiserver/apiserver.go
File state/apiserver/apiserver.go (right):
https://codereview.appspot.com/10447047/diff/3001/state/apiserver/apiserver.g...
state/apiserver/apiserver.go:116: func serverError(err error) error {
Not really happy with the name, missing a verb in front of it. Named with a noun
it more sounds like a type or instance instead of a function that does
something.
Sign in to reply to this message.
rog
thanks for the review. https://codereview.appspot.com/10447047/diff/3001/state/apiserver/apiserver.go File state/apiserver/apiserver.go (right): https://codereview.appspot.com/10447047/diff/3001/state/apiserver/apiserver.go#newcode116 state/apiserver/apiserver.go:116: func serverError(err error) error { ...
12 years, 6 months ago (2013年06月24日 11:56:37 UTC) #3
thanks for the review.
https://codereview.appspot.com/10447047/diff/3001/state/apiserver/apiserver.go
File state/apiserver/apiserver.go (right):
https://codereview.appspot.com/10447047/diff/3001/state/apiserver/apiserver.g...
state/apiserver/apiserver.go:116: func serverError(err error) error {
On 2013年06月24日 11:51:35, mue wrote:
> Not really happy with the name, missing a verb in front of it. Named with a
noun
> it more sounds like a type or instance instead of a function that does
> something.
That's the name we're currently using (see common.ServerError).
If you think this bikeshed is the wrong colour, feel free
to propose a branch that changes the name.
For the record, it's not uncommon in Go to name functions by
what they return rather than what they do. For example:
http://golang.org/pkg/net/http/#StatusText 
Sign in to reply to this message.
fwereade
Awesome, LGTM.
12 years, 6 months ago (2013年06月24日 15:04:57 UTC) #4
Awesome, LGTM.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /