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

Issue 12168043: Fix megawatcher to also unescape settings (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by sidnei.da.silva
Modified:
10 years, 9 months ago
Reviewers:
dimitern, mp+177854, rog
Visibility:
Public.

Description

Fix megawatcher to also unescape settings Per rog's review, cleaned up a few things here and there and also fix megawatcher to unescape properly. https://code.launchpad.net/~sidnei/juju-core/encode-dollar-and-dot-2/+merge/177854 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fix megawatcher to also unescape settings #

Total comments: 6

Patch Set 3 : Fix megawatcher to also unescape settings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -49 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/megawatcher_internal_test.go View 1 2 chunks +32 lines, -0 lines 0 comments Download
M state/settings.go View 1 11 chunks +49 lines, -46 lines 0 comments Download
M state/settings_test.go View 1 2 4 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 7
sidnei.da.silva
Please take a look.
10 years, 9 months ago (2013-07-31 14:17:13 UTC) #1
rog
LGTM with some thoughts below https://codereview.appspot.com/12168043/diff/1/state/settings.go File state/settings.go (right): https://codereview.appspot.com/12168043/diff/1/state/settings.go#newcode19 state/settings.go:19: var fullWidthDot = "\uff0e" ...
10 years, 9 months ago (2013-07-31 15:47:47 UTC) #2
dimitern
LGTM with a few trivial suggestions. https://codereview.appspot.com/12168043/diff/1/state/megawatcher_internal_test.go File state/megawatcher_internal_test.go (right): https://codereview.appspot.com/12168043/diff/1/state/megawatcher_internal_test.go#newcode794 state/megawatcher_internal_test.go:794: AddCustomCharm(c, st, "wordpress", ...
10 years, 9 months ago (2013-07-31 16:06:19 UTC) #3
rog
https://codereview.appspot.com/12168043/diff/1/state/settings.go File state/settings.go (right): https://codereview.appspot.com/12168043/diff/1/state/settings.go#newcode19 state/settings.go:19: var fullWidthDot = "\uff0e" On 2013/07/31 16:06:19, dimitern wrote: ...
10 years, 9 months ago (2013-07-31 16:09:31 UTC) #4
sidnei.da.silva
Please take a look.
10 years, 9 months ago (2013-07-31 17:39:54 UTC) #5
rog
LGTM with a few final suggestions. https://codereview.appspot.com/12168043/diff/9001/state/settings_test.go File state/settings_test.go (right): https://codereview.appspot.com/12168043/diff/9001/state/settings_test.go#newcode29 state/settings_test.go:29: func cleanMgoSettings(in map[string]interface{}) ...
10 years, 9 months ago (2013-07-31 17:50:09 UTC) #6
sidnei.da.silva
10 years, 9 months ago (2013-07-31 18:56:37 UTC) #7
Please take a look.

https://codereview.appspot.com/12168043/diff/9001/state/settings_test.go
File state/settings_test.go (right):

https://codereview.appspot.com/12168043/diff/9001/state/settings_test.go#newc...
state/settings_test.go:29: func cleanMgoSettings(in map[string]interface{}) {
On 2013/07/31 17:50:10, rog wrote:
> i'd put this at the end of the file - it's not important enough to be at the
> start.

Done.

https://codereview.appspot.com/12168043/diff/9001/state/settings_test.go#newc...
state/settings_test.go:130: cleanMgoSettings(mgoData)
On 2013/07/31 17:50:10, rog wrote:
> cleanSettingsMap is still appropriate here, i think, because options (which
> we're comparing against) is used to call Update, which expects unescaped
values.

It is actually appropriate because options doesn't contain dot or dollar here.
Done.

https://codereview.appspot.com/12168043/diff/9001/state/settings_test.go#newc...
state/settings_test.go:212: cleanMgoSettings(mgoData)
On 2013/07/31 17:50:10, rog wrote:
> similarly here

Same as above, done.
Sign in to reply to this message.

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