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

Issue 8018043: Replace EntityName with Tag

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by matthew.scott
Modified:
11 years, 1 month ago
Reviewers:
mp+155310, jameinel, fwereade
Visibility:
Public.

Description

Replace EntityName with Tag This branch refactors EntityName to Tag per William and Roger in order to aid in clarity. Additionally, it adds a Tagger interface in state so that state.Authenticator() can return a TaggedAuthenticator and state.Annotator() can return a Tagged Annotator. This was used to help clean up tests as well, as many were defining namedEntity interfaces in order to expose EntityName in tests. Additionally, to be consistent, this branch changes (in a separate commit) the EntityName field in the state Info and api Info objects to Tag. API params for login and annotations were also changed away from EntityName, and docs were updated accordingly. There will be a subsequent GUI branch to accomodate for this if/after it lands. https://code.launchpad.net/~makyo/juju-core/tagger-1156715/+merge/155310 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Replace EntityName with Tag #

Total comments: 28

Patch Set 3 : Replace EntityName with Tag #

Total comments: 8

Patch Set 4 : Replace EntityName with Tag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+604 lines, -611 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/agent.go View 4 chunks +5 lines, -5 lines 0 comments Download
M cmd/jujud/agent_test.go View 6 chunks +7 lines, -7 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M cmd/jujud/deploy_test.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cmd/jujud/machine.go View 2 chunks +3 lines, -3 lines 0 comments Download
M cmd/jujud/machine_test.go View 2 chunks +5 lines, -5 lines 0 comments Download
M cmd/jujud/unit.go View 2 chunks +3 lines, -3 lines 0 comments Download
M cmd/jujud/unit_test.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/upgrade.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/jujud/upgrade_test.go View 1 chunk +1 line, -1 line 0 comments Download
M doc/api.txt View 1 chunk +1 line, -1 line 0 comments Download
M environs/agent/agent.go View 1 2 6 chunks +16 lines, -16 lines 0 comments Download
M environs/agent/agent_test.go View 1 2 14 chunks +108 lines, -108 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 3 10 chunks +23 lines, -23 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 2 3 6 chunks +55 lines, -55 lines 0 comments Download
M environs/dummy/environs.go View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M environs/openstack/local_test.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M environs/openstack/provider.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M juju/api.go View 1 chunk +1 line, -1 line 0 comments Download
M juju/testing/conn.go View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M state/annotator.go View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download
M state/api/apiclient.go View 1 2 3 5 chunks +22 lines, -22 lines 0 comments Download
M state/api/client.go View 2 chunks +4 lines, -4 lines 0 comments Download
M state/api/params/params.go View 1 2 3 4 chunks +7 lines, -7 lines 0 comments Download
M state/api/params/params_test.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M state/apiserver/api_test.go View 1 2 3 26 chunks +68 lines, -82 lines 0 comments Download
M state/apiserver/apiserver.go View 1 2 3 11 chunks +17 lines, -17 lines 0 comments Download
M state/assign_test.go View 1 2 3 2 chunks +4 lines, -8 lines 0 comments Download
M state/environ.go View 1 chunk +6 lines, -6 lines 0 comments Download
M state/environ_test.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M state/machine.go View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download
M state/machine_test.go View 1 chunk +4 lines, -4 lines 0 comments Download
M state/megawatcher_internal_test.go View 1 2 3 6 chunks +11 lines, -11 lines 0 comments Download
M state/open.go View 3 chunks +6 lines, -6 lines 0 comments Download
M state/service.go View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M state/service_test.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M state/state.go View 1 2 3 4 chunks +41 lines, -25 lines 0 comments Download
M state/state_test.go View 1 2 3 16 chunks +28 lines, -35 lines 0 comments Download
M state/unit.go View 1 2 3 4 chunks +14 lines, -14 lines 0 comments Download
M state/unit_test.go View 3 chunks +7 lines, -7 lines 0 comments Download
M state/user.go View 1 chunk +2 lines, -2 lines 0 comments Download
M state/user_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/watcher.go View 4 chunks +12 lines, -12 lines 0 comments Download
M worker/deployer/deployer.go View 1 2 4 chunks +12 lines, -12 lines 0 comments Download
M worker/deployer/deployer_test.go View 4 chunks +4 lines, -4 lines 0 comments Download
M worker/deployer/export_test.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M worker/deployer/simple.go View 1 2 3 8 chunks +24 lines, -24 lines 0 comments Download
M worker/deployer/simple_test.go View 1 2 3 5 chunks +14 lines, -14 lines 0 comments Download
M worker/provisioner/provisioner.go View 1 chunk +2 lines, -2 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/uniter/uniter.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
matthew.scott
Please take a look.
11 years, 1 month ago (2013-03-25 18:01:30 UTC) #1
fwereade
A few suggestions for clarity's sake, but I think dropping EntityName is enough of a ...
11 years, 1 month ago (2013-03-26 09:03:32 UTC) #2
matthew.scott
Thanks for the review. Changes noted below for comments. I switched to AuthTag for API ...
11 years, 1 month ago (2013-03-26 20:12:44 UTC) #3
matthew.scott
Please take a look.
11 years, 1 month ago (2013-03-26 20:17:55 UTC) #4
jameinel
LGTM. Some small questions, but nothing that I think needs to be done. I don't ...
11 years, 1 month ago (2013-03-28 16:20:01 UTC) #5
matthew.scott
Thanks again for the review. No real changes to make, other than potentially updating some ...
11 years, 1 month ago (2013-03-28 16:35:23 UTC) #6
matthew.scott
11 years, 1 month ago (2013-03-29 16:01:53 UTC) #7
*** Submitted:

Replace EntityName with Tag

This branch refactors EntityName to Tag per William and Roger in order to aid in
clarity.  Additionally, it adds a Tagger interface in state so that
state.Authenticator() can return a TaggedAuthenticator and state.Annotator() can
return a Tagged Annotator.  This was used to help clean up tests as well, as
many were defining namedEntity interfaces in order to expose EntityName in
tests.  Additionally, to be consistent, this branch changes (in a separate
commit) the EntityName field in the state Info and api Info objects to Tag.  API
params for login and annotations were also changed away from EntityName, and
docs were updated accordingly.  There will be a subsequent GUI branch to
accomodate for this if/after it lands.

R=fwereade, jameinel
CC=
https://codereview.appspot.com/8018043
Sign in to reply to this message.

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