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

initial import #1

Merged
merged 18 commits into from
Sep 15, 2014
Merged

initial import #1

merged 18 commits into from
Sep 15, 2014

Conversation

proppy
Copy link
Member

@proppy proppy commented Aug 30, 2014

No description provided.

@rakyll
Copy link

rakyll commented Sep 2, 2014

@ryanseys, could you take a look?

@rakyll
Copy link

rakyll commented Sep 2, 2014

Depends on googleapis/google-cloud-node#154

return;
}
res.json(items.map(function(obj, i) {
obj.data.id = obj.key.path_.pop();
Copy link

Choose a reason for hiding this comment

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

We should add some pseudo getters for IDs and names to avoid this.

@rakyll
Copy link

rakyll commented Sep 2, 2014

Could we rename this repo to appengine-nodejs-todos? gcloud-node sample apps should work without bits from GAE.

var gcloud = require('gcloud'),
datastore = gcloud.datastore;

var ds = new datastore.Dataset({
Copy link

Choose a reason for hiding this comment

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

You should be able to do the following once googleapis/google-cloud-node#154 is merged.

var ds = new datastore.Dataset();

@proppy
Copy link
Member Author

proppy commented Sep 2, 2014

Could we rename this repo to appengine-nodejs-todos? gcloud-node sample apps should work without bits from GAE.

@rakyll that's a good question, one way could be to make this sample to be portable, and put the App Engine specific parts behind flags.

@ryanseys
Copy link
Contributor

ryanseys commented Sep 2, 2014

+1 for putting App Engine behind flags.

@ryanseys
Copy link
Contributor

ryanseys commented Sep 2, 2014

Should rename CONTRIB.md to CONTRIBUTING.md to have the contributing guidelines pop up when a developer creates a PR. See: https://github.com/blog/1184-contributing-guidelines

@proppy
Copy link
Member Author

proppy commented Sep 2, 2014

Should rename CONTRIB.md to CONTRIBUTING.md to have the contributing guidelines pop up when a developer creates a PR. See: https://github.com/blog/1184-contributing-guidelines

That should be raised against https://github.com/GoogleCloudPlatform/Template

@ryanseys
Copy link
Contributor

ryanseys commented Sep 2, 2014

That should be raised against https://github.com/GoogleCloudPlatform/Template

Okay, done.

Should still be done here.

@proppy
Copy link
Member Author

proppy commented Sep 3, 2014

Fixed contrib and lint issues, PTAL

@ryanseys
Copy link
Contributor

ryanseys commented Sep 3, 2014

Could you add some comments to the code so that developers can at-a-glance see what the different parts of the code will be doing? Also, @rakyll suggested you use some helper methods for:

obj.data.id = obj.key.path_.pop();

and such... If you don't put them in helpers, could you at least comment on what they are meant to do?

@rakyll
Copy link

rakyll commented Sep 4, 2014

@ryanseys, let's discuss this issue on googleapis/google-cloud-node#171

We should provide a getter.

@proppy
Copy link
Member Author

proppy commented Sep 11, 2014

PTAL bump gcloud deps, and added blueprint driven tests.

@@ -0,0 +1,42 @@
var request = require('request');
var hooks = require('hooks');
Copy link
Contributor

Choose a reason for hiding this comment

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

hooks should be a dependency?

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'm pretty sure this comes w/ dredd.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nope, it doesn't.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

And dredd add it on the fly when loading the hooks dynamically:
https://github.com/apiaryio/dredd/blob/master/src/add-hooks.coffee#L27

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, ok. I was strictly looking at dependencies. Weird way to do it but I can't complain. 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

proxyquire FTW,

That's what they recommend in their doc, so I'm not guilty!
https://github.com/apiaryio/dredd/wiki/Writing-Hooks

Copy link

Choose a reason for hiding this comment

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

Add a comment explaining the magic. Otherwise, it may confuse the future maintainer.

@proppy
Copy link
Member Author

proppy commented Sep 12, 2014

FYI, tests are green on 0.10:
https://travis-ci.org/proppy/gcloud-node-todos/jobs/35074189

@rakyll
Copy link

rakyll commented Sep 12, 2014

LGTM

Ship it. :shipit:

@proppy
Copy link
Member Author

proppy commented Sep 15, 2014

PTAL

@silvolu
Copy link

silvolu commented Sep 15, 2014

Looks good, go for it!

proppy added a commit that referenced this pull request Sep 15, 2014
@proppy proppy merged commit d6c5e06 into GoogleCloudPlatform:master Sep 15, 2014
@proppy
Copy link
Member Author

proppy commented Sep 15, 2014

Merged, thanks for the review.

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.

4 participants