-
Notifications
You must be signed in to change notification settings - Fork 88
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
Conversation
Current coverage is 92.94% (diff: 93.65%)@@ 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
|
c490159
to
87cd6a6
Compare
02c70e0
to
037b973
Compare
There was a problem hiding this 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
canceller.callback(error); | ||
return; | ||
} | ||
canceller.callback(null, op.result.response); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
} else { | ||
var response = op.result.response; | ||
if (this.decoder) { | ||
response = this.decoder(response); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
308375b
to
ee372de
Compare
@jmuk This is ready for another look. |
* @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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
* 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -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.
This comment was marked as spam.
Sorry, something went wrong.
b924b40
to
8b56102
Compare
This is ready for another look @jmuk. |
There was a problem hiding this 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this 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.
Thanks for the review! |
No description provided.