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

Issue 7568049: charm: add JSON support for URL

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by rog
Modified:
11 years, 6 months ago
Reviewers:
dave, fwereade, mp+154766
Visibility:
Public.

Description

charm: add JSON support for URL We want it for the API. https://code.launchpad.net/~rogpeppe/juju-core/252-charm-url-json/+merge/154766 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : charm: add JSON support for URL #

Total comments: 3

Patch Set 3 : charm: add JSON support for URL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -14 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M charm/url.go View 2 chunks +23 lines, -0 lines 0 comments Download
M charm/url_test.go View 2 chunks +30 lines, -14 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
11 years, 6 months ago (2013-03-21 17:32:53 UTC) #1
thumper
https://codereview.appspot.com/7568049/diff/2001/charm/url.go File charm/url.go (right): https://codereview.appspot.com/7568049/diff/2001/charm/url.go#newcode211 charm/url.go:211: panic("cannot marshal nil *charm.URL") Why panic instead of returning ...
11 years, 6 months ago (2013-03-21 22:35:12 UTC) #2
dave_cheney.net
LGTM modulo thumper's comment. https://codereview.appspot.com/7568049/diff/2001/charm/url.go File charm/url.go (right): https://codereview.appspot.com/7568049/diff/2001/charm/url.go#newcode211 charm/url.go:211: panic("cannot marshal nil *charm.URL") On ...
11 years, 6 months ago (2013-03-22 00:18:21 UTC) #3
fwereade
IMO we should forget the whole error/panic thing in MarshalJSON, and just let the panics ...
11 years, 6 months ago (2013-03-22 00:54:55 UTC) #4
dave_cheney.net
No need to have a chat. Just remove the nil check, this isn't that important. ...
11 years, 6 months ago (2013-03-22 00:57:29 UTC) #5
rog
11 years, 6 months ago (2013-03-22 16:57:18 UTC) #6
*** Submitted:

charm: add JSON support for URL

We want it for the API.

R=thumper, dfc, fwereade
CC=
https://codereview.appspot.com/7568049
Sign in to reply to this message.

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