Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Rename SupportedSeries and add json serialisation #158
Conversation
rogpeppe
reviewed
Sep 29, 2015
| + OldRevision int `bson:"oldrevision,omitempty"` // Obsolete | ||
| + Categories []string `bson:"categories,omitempty" json:"categories,omitempty"` | ||
| + Tags []string `bson:"tags,omitempty" json:"tag,omitempty"` | ||
| + Series []string `bson:"series,omitempty" json:"supported-series,omitempty"` |
rogpeppe
Sep 29, 2015
Owner
Perhaps add a comment here:
// Series is serialised for backward compatibility
// as "supported-series" because a previous
// charm version had an incompatible Series field that
// was unused in practice but still serialized. This
// only applies to JSON because Meta has a custom
// YAML marshaler.
?
rogpeppe
reviewed
Sep 29, 2015
| @@ -268,7 +268,7 @@ func (s *MetaSuite) TestSeries(c *gc.C) { | ||
| func (s *MetaSuite) TestInvalidSeries(c *gc.C) { |
rogpeppe
Sep 29, 2015
Owner
We should have at least one test that tests we can unmarshal a charm with multiple series.
|
LGTM with a couple of suggestions, thanks. |
|
|
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju-charm |
added a commit
that referenced
this pull request
Sep 30, 2015
jujubot
merged commit 0ba5fd4
into
juju:v6-unstable
Sep 30, 2015
rogpeppe
referenced this pull request
Nov 6, 2015
Merged
revert to using same JSON field names as before #167
added a commit
that referenced
this pull request
Nov 6, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wallyworld commentedSep 29, 2015
The recent rename of Series to SupportedSeries was rejected, so we rename back.