Conversation
datastore/tasks.js
Outdated
| } | ||
| case 'delete': { | ||
| taskId = parseInt(input, 10); | ||
| console.log('Task %d updated successfully.', options.taskId); |
There was a problem hiding this comment.
Should this logic go in the parent function (e.g. markDone) as it did in the BigQuery samples, or in the yargs handler?
There was a problem hiding this comment.
Probably should go in the markDone function.
| } | ||
| // [END delete_entity] | ||
|
|
||
| // [START format_results] |
There was a problem hiding this comment.
Are the docs going to continue to work with this region tag deleted?
There was a problem hiding this comment.
They should - this tag didn't come up anywhere when I did a code search.
9504fd1 to
29774f9
Compare
|
@jmdobry should be good to review. |
datastore/tasks.js
Outdated
| return callback(err); | ||
| } | ||
|
|
||
| return callback(); |
There was a problem hiding this comment.
Add the following above this line: console.log('Task %d deleted successfully.', taskId);
|
Aside: this sample needs (unit) tests - but I'm assuming those will go in a separate PR. |
Current coverage is 17.52% (diff: 15.38%)
|
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
* updated CHANGELOG.md * updated package.json * updated samples/package.json
* updated CHANGELOG.md * updated package.json * updated samples/package.json
No description provided.