{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1142","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1142/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1142/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1142/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1142","id":137323022,"number":1142,"title":"core: add support for promises","user":{"login":"callmehiphop","id":1707267,"avatar_url":"https://avatars.githubusercontent.com/u/1707267?v=3","gravatar_id":"","url":"https://api.github.com/users/callmehiphop","html_url":"https://github.com/callmehiphop","followers_url":"https://api.github.com/users/callmehiphop/followers","following_url":"https://api.github.com/users/callmehiphop/following{/other_user}","gists_url":"https://api.github.com/users/callmehiphop/gists{/gist_id}","starred_url":"https://api.github.com/users/callmehiphop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmehiphop/subscriptions","organizations_url":"https://api.github.com/users/callmehiphop/orgs","repos_url":"https://api.github.com/users/callmehiphop/repos","events_url":"https://api.github.com/users/callmehiphop/events{/privacy}","received_events_url":"https://api.github.com/users/callmehiphop/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/cla:%20yes","name":"cla: yes","color":"009800"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/core","name":"core","color":"f7c6c7"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/don't%20merge","name":"don't merge","color":"e11d21"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/minor","name":"minor","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-29T17:48:28Z","updated_at":"2016-05-19T13:35:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1142","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1142","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1142.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1142.patch"},"body":"Fixes #551\r\n\r\nThis PR aims to add support for [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\r\n\r\nThis will also introduce a breaking change moving all stream related APIs behind a `stream` option.\r\n\r\nBecause this will be such an enormous change and GitHub probably won't be able to display everything, logical commits will be used to make reviewing the changes a little easier.\r\n\r\n#### TODO:\r\n\r\n- [ ] Core support\r\n- [ ] Service support - this includes unit tests, system tests and documentation.\r\n  - [ ] BigQuery\r\n  - [ ] Compute\r\n  - [ ] Datastore\r\n  - [ ] DNS\r\n  - [ ] Logging\r\n  - [ ] Prediction\r\n  - [ ] PubSub\r\n  - [ ] Resource\r\n  - [ ] Search\r\n  - [ ] Storage\r\n  - [ ] Translate\r\n- [ ] Documentation site support"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/comments/220325703","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1142#issuecomment-220325703","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1142","id":220325703,"user":{"login":"callmehiphop","id":1707267,"avatar_url":"https://avatars.githubusercontent.com/u/1707267?v=3","gravatar_id":"","url":"https://api.github.com/users/callmehiphop","html_url":"https://github.com/callmehiphop","followers_url":"https://api.github.com/users/callmehiphop/followers","following_url":"https://api.github.com/users/callmehiphop/following{/other_user}","gists_url":"https://api.github.com/users/callmehiphop/gists{/gist_id}","starred_url":"https://api.github.com/users/callmehiphop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmehiphop/subscriptions","organizations_url":"https://api.github.com/users/callmehiphop/orgs","repos_url":"https://api.github.com/users/callmehiphop/repos","events_url":"https://api.github.com/users/callmehiphop/events{/privacy}","received_events_url":"https://api.github.com/users/callmehiphop/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T13:35:20Z","updated_at":"2016-05-19T13:35:20Z","body":"I just tested that, technically it's valid and does not throw an error. We could unbind events if a user adds a promise, assuming that's a concern."}}