-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Bring Logging samples up to standard. #183
Conversation
@ace-n Ready for review, when you have a moment. |
Current coverage is 87.42% (diff: 97.87%)@@ master #183 diff @@
==========================================
Files 58 57 -1
Lines 2383 2409 +26
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 2057 2106 +49
+ Misses 326 303 -23
Partials 0 0
|
config.filter = options.filter; | ||
} | ||
if (options.limit) { | ||
config.pageSize = options.limit; |
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.
Should we rename the options
values to the names config
uses? That way we can just pass options
in as config
.
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.
Tried that. gcloud-node throws an error if the options contains keys that aren't official options.
|
||
'use strict'; | ||
|
||
var gcloud = require('google-cloud'); |
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.
😢 (is there any way to not require the whole thing?)
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.
Sure, but would have to do this instead:
var Logging = require('@google-cloud/logging');
var Storage = require('@google-cloud/storage');
var BigQuery = require('@google-cloud/bigquery');
var PubSub = require('@google-cloud/pubsub');
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.
Ah, makes sense.
LGTM, other than my comments. |
Cool. Just pushed again, will merge when green. |
Thanks! |
🤖 I have created a release \*beep\* \*boop\* --- ### [2.1.1](https://www.github.com/googleapis/nodejs-datacatalog/compare/v2.1.0...v2.1.1) (2020-07-09) ### Bug Fixes * typeo in nodejs .gitattribute ([#182](https://www.github.com/googleapis/nodejs-datacatalog/issues/182)) ([9e46bfc](https://www.github.com/googleapis/nodejs-datacatalog/commit/9e46bfce7847084d24d85218d5a294ff7c46e2ff)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please).
🤖 I have created a release \*beep\* \*boop\* --- ### [2.1.1](https://www.github.com/googleapis/nodejs-datacatalog/compare/v2.1.0...v2.1.1) (2020-07-09) ### Bug Fixes * typeo in nodejs .gitattribute ([#182](https://www.github.com/googleapis/nodejs-datacatalog/issues/182)) ([9e46bfc](https://www.github.com/googleapis/nodejs-datacatalog/commit/9e46bfce7847084d24d85218d5a294ff7c46e2ff)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please).
🤖 I have created a release *beep* *boop* --- ## [2.0.0](googleapis/nodejs-retail@v1.8.1...v2.0.0) (2022-06-20) ### ⚠ BREAKING CHANGES * update library to use Node 12 (#181) ### Features * allow users to disable spell check in search requests ([#183](googleapis/nodejs-retail#183)) ([05005ea](googleapis/nodejs-retail@05005ea)) ### Bug Fixes * **deps:** update dependency @google-cloud/bigquery to v6 ([#186](googleapis/nodejs-retail#186)) ([fc07923](googleapis/nodejs-retail@fc07923)) ### Build System * update library to use Node 12 ([#181](googleapis/nodejs-retail#181)) ([809853f](googleapis/nodejs-retail@809853f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Fixes #175