Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the bundles-containing API endpoint. #78

Merged
merged 10 commits into from Aug 21, 2014

Conversation

frankban
Copy link
Member

No description provided.

@jujugui
Copy link
Contributor

jujugui commented Aug 20, 2014

Test PASSed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/charmstore/133/

@@ -228,6 +228,9 @@ func bundleCharms(data *charm.BundleData) ([]*charm.Reference, error) {
return nil, errgo.Mask(err)
}
urlMap[url.String()] = url
// Also add the corresponding base URL.
base := baseURL(url)
urlMap[base.String()] = base
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or just:

urlMap[base.String() = baseURL(url)

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't follow this, we need to define base to be able to do base.String().

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Ignore me :-)

@urosj
Copy link
Contributor

urosj commented Aug 20, 2014

LGTM, with some small remarks (validation and "flat" names).

@rogpeppe
Copy link
Contributor

Very nice stuff, thanks. LGTM modulo the above comments and suggestions.

@rogpeppe rogpeppe closed this Aug 20, 2014
@rogpeppe rogpeppe reopened this Aug 20, 2014
@jujugui
Copy link
Contributor

jujugui commented Aug 20, 2014

Test PASSed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/charmstore/134/

@frankban
Copy link
Member Author

Thanks for the reviews!

@jujugui
Copy link
Contributor

jujugui commented Aug 20, 2014

Test PASSed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/charmstore/135/

@jujugui
Copy link
Contributor

jujugui commented Aug 20, 2014

Test PASSed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/charmstore/137/

@jrwren
Copy link
Contributor

jrwren commented Aug 20, 2014

👍

@jujugui
Copy link
Contributor

jujugui commented Aug 21, 2014

Test PASSed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/charmstore/141/

case "1":
return true, nil
}
return false, errgo.Newf(`value must be either "0", "1" or empty, but %q passed`, value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

errgo.Newf(`unexpected bool value %q (must be "0" or "1")`, value)

?

(probably not worth mentioning that it can be empty - that's just to allow
it to be omitted)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@rogpeppe
Copy link
Contributor

A few more suggestions, but still LGTM.

@jujugui
Copy link
Contributor

jujugui commented Aug 21, 2014

Test PASSed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/charmstore/142/

@frankban
Copy link
Member Author

:shipit:

@jujugui
Copy link
Contributor

jujugui commented Aug 21, 2014

Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/charmstore-merge

jujugui added a commit that referenced this pull request Aug 21, 2014
Implement the bundles-containing API endpoint.
@jujugui jujugui merged commit 49e7f00 into juju:v4 Aug 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants