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 expand-id API. #76

Merged
merged 5 commits into from Aug 19, 2014
Merged

Implement the expand-id API. #76

merged 5 commits into from Aug 19, 2014

Conversation

frankban
Copy link
Member

No description provided.

@jujugui
Copy link
Contributor

jujugui commented Aug 19, 2014

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


// Retrieve all the entities with the same base URL.
var docs []mongodoc.Entity
if err := h.store.DB.Entities().Find(bson.M{"baseurl": id}).Select(bson.M{"_id": 1}).All(&docs); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

I've been using bson.D rather than bson.M in general. It's equivalent, but just slightly more lightweight at runtime.

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

Good stuff. LGTM with a few minor suggestions above.

@jujugui
Copy link
Contributor

jujugui commented Aug 19, 2014

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

@jujugui
Copy link
Contributor

jujugui commented Aug 19, 2014

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

@frankban
Copy link
Member Author

:shipit:

@jujugui
Copy link
Contributor

jujugui commented Aug 19, 2014

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

jujugui added a commit that referenced this pull request Aug 19, 2014
@jujugui jujugui merged commit 772eddf into juju:v4 Aug 19, 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

3 participants