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

Issue 92920043: refactor to remove apiRootForEntity

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 12 months ago by natefinch
Modified:
9 years, 11 months ago
Reviewers:
mp+217836, fwereade, rog
Visibility:
Public.

Description

refactor to remove apiRootForEntity This was going to be used for giving different roots for differnt enitities, but we don't actually do that, and it made for some very awkward code. https://code.launchpad.net/~natefinch/juju-core/jameinel-pinger-for-agent/+merge/217836 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -33 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M state/apiserver/admin.go View 3 chunks +39 lines, -33 lines 0 comments Download

Messages

Total messages: 3
natefinch
Please take a look.
9 years, 12 months ago (2014-04-30 22:02:31 UTC) #1
rog
I'd much prefer it if we actually completed the TODO and returned an entity-specific API ...
9 years, 12 months ago (2014-05-01 00:58:21 UTC) #2
fwereade
9 years, 11 months ago (2014-05-06 08:29:04 UTC) #3
On 2014/05/01 00:58:21, rog wrote:
> I'd much prefer it if we actually completed the TODO and returned an
> entity-specific API root. It's not that difficult to do.

I have some sympathy here, but (1) we haven't done it yet (2) we're going to
consolidate the agents anyway, rendering its expected value somewhat lower and
(3) eventually we're going to have to open up client access from the agents
anyway (for service-level -- and eventually stack-level -- orchestration), and
at that point it'll only be harder to do so if we need to unpick that sort of
logic.

ie it's simpler now, and it's likely to stay this simple in the future; and
we'll always have to carry the cost of carefully fine-grained permissions in
client *anyway*. And we can still easily prevent access to agent APIs from
clients at the facade level anyway. So, LGTM, and thanks.
Sign in to reply to this message.

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