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

LRO implementation. #64

Merged
merged 14 commits into from
Dec 5, 2016
Merged

LRO implementation. #64

merged 14 commits into from
Dec 5, 2016

Conversation

landrito
Copy link
Contributor

@landrito landrito commented Nov 3, 2016

No description provided.

@codecov-io
Copy link

codecov-io commented Nov 3, 2016

Current coverage is 92.94% (diff: 93.65%)

Merging #64 into master will increase coverage by 0.08%

@@             master        #64   diff @@
==========================================
  Files             9         10     +1   
  Lines          1037       1163   +126   
  Methods         157        180    +23   
  Messages          0          0          
  Branches        215        233    +18   
==========================================
+ Hits            963       1081   +118   
- Misses           74         82     +8   
  Partials          0          0          

Powered by Codecov. Last update 49fb4f5...a5fc41b

@landrito landrito force-pushed the lro branch 3 times, most recently from c490159 to 87cd6a6 Compare November 3, 2016 18:13
@landrito landrito force-pushed the lro branch 2 times, most recently from 02c70e0 to 037b973 Compare November 3, 2016 23:35
Copy link
Contributor

@jmuk jmuk left a comment

Choose a reason for hiding this comment

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

Overall, nice work! Looks like it's in a good shape.
A few nitpicking comments.

return;
}

var operationsApi = settings.longrunning.operationsApi;

This comment was marked as spam.

This comment was marked as spam.

canceller.callback(error);
return;
}
canceller.callback(null, op.result.response);

This comment was marked as spam.

This comment was marked as spam.

error = new Error(op.result.error.message);
error.code = op.result.error.code;
canceller.callback(error);
return;

This comment was marked as spam.

This comment was marked as spam.

@landrito landrito mentioned this pull request Nov 7, 2016
2 tasks
} else {
var response = op.result.response;
if (this.decoder) {
response = this.decoder(response);

This comment was marked as spam.

@landrito landrito force-pushed the lro branch 4 times, most recently from 308375b to ee372de Compare November 21, 2016 16:53
@landrito
Copy link
Contributor Author

@jmuk This is ready for another look.

@landrito landrito changed the title WIP: LRO implementation. LRO implementation. Nov 21, 2016
* @property {anyDecoder=} longrunning.metadataDecoder - The decoder to unpack
* the metadata message. If not provided, the metadata will be unpacked if
* the proto descriptor of the any value is found in the longrunningDescriptor
* protoDescriptorPool.

This comment was marked as spam.

This comment was marked as spam.

* the proto descriptor of the any value is found in the longrunningDescriptor
* protoDescriptorPool.
* @property {backoffSettings=} longrunning.backoffSettings - The backoff
* settings used to poll operation.

This comment was marked as spam.

This comment was marked as spam.

@@ -58,6 +58,10 @@
* pageToken.
* @property {boolean=} isBundling - If set to false and the call is configured
* for bundling, bundling is not performed.
* @property {boolean || BackoffSettings=} longrunning - If set to false and the

This comment was marked as spam.

@landrito landrito force-pushed the lro branch 2 times, most recently from b924b40 to 8b56102 Compare November 30, 2016 23:47
@landrito
Copy link
Contributor Author

This is ready for another look @jmuk.

Copy link
Contributor

@jmuk jmuk left a comment

Choose a reason for hiding this comment

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

Please modify index.js to expose the new LongrunningDescriptor.

* operations service client and unpacking mechanisms for the operation.
* @param {BackoffSettings} backoffSettings - The backoff settings used in
* in polling the operation.
* @private

This comment was marked as spam.

This comment was marked as spam.

Copy link
Contributor

@jmuk jmuk left a comment

Choose a reason for hiding this comment

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

LGTM -- please wait for the toolkit change though.

@landrito
Copy link
Contributor Author

landrito commented Dec 5, 2016

Thanks for the review!

@landrito landrito merged commit 566e5c9 into googleapis:master Dec 5, 2016
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.

3 participants