GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Simplify BigQuery samples according to our standard. by jmdobry · Pull Request #207 · GoogleCloudPlatform/nodejs-docs-samples

Conversation

@jmdobry

@jmdobry jmdobry commented Sep 6, 2016

Copy link
Copy Markdown
Member

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jmdobry jmdobry assigned ace-n Sep 6, 2016
@jmdobry

jmdobry commented Sep 7, 2016

Copy link
Copy Markdown
Member Author

Same eslint const issue is plaguing this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jmdobry
Simplify BigQuery samples according to our standard.
cfbaeb3
@jmdobry
jmdobry force-pushed the simplify branch from aaa4f77 to cfbaeb3 Compare September 7, 2016 19:55
ace-n
ace-n reviewed Sep 7, 2016
View reviewed changes
Comment thread bigquery/system-test/datasets.test.js Outdated
program.listDatasets(projectId, function (err, datasets) {
assert.ifError(err);
assert.equal(err, null);
assert(Array.isArray(datasets));

@ace-n ace-n Sep 7, 2016

Copy link
Copy Markdown
Contributor

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.

Fix assert style?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jmdobry jmdobry Sep 7, 2016

Copy link
Copy Markdown
Member Author

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.

Fixed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jmdobry
Address comments
d776c00
ace-n
ace-n reviewed Sep 7, 2016
View reviewed changes
Comment thread bigquery/tables.js
format: options.format,
gzip: options.gzip
};
var Storage = require('@google-cloud/storage');

@ace-n ace-n Sep 7, 2016

Copy link
Copy Markdown
Contributor

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 a reason you're declaring this here and on line 170?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jmdobry jmdobry Sep 7, 2016

Copy link
Copy Markdown
Member Author

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.

Yes, because this is an import. Imports should be as close to top-level statements as possible. In ES6, the new version of JavaScript, this is enforced by the new import syntax, which only works as a top-level statement.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ace-n ace-n Sep 7, 2016

Copy link
Copy Markdown
Contributor

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, good to know.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jmdobry
Add region tag.
ceb1f66
ace-n
ace-n reviewed Sep 7, 2016
View reviewed changes
Comment thread bigquery/test/queries.test.js
assert.equal(example.mocks.job.getMetadata.calledOnce, true);
assert.deepEqual(example.mocks.job.getMetadata.firstCall.args.slice(0, -1), []);
assert.equal(example.mocks.job.on.calledTwice, true);
assert.deepEqual(example.mocks.job.on.firstCall.args.slice(0, -1), ['error']);

@ace-n ace-n Sep 7, 2016

Copy link
Copy Markdown
Contributor

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 these tests depend on the order of the callbacks? (It seems like they do, at least currently...)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jmdobry jmdobry Sep 7, 2016

Copy link
Copy Markdown
Member Author

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.

The sample is deterministic and the current assertions are about as restrictive/specific as it gets, and won't fail unless someone changes the sample. The only alternative would be looser assertions.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ace-n ace-n Sep 7, 2016

Copy link
Copy Markdown
Contributor

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.

Fair enough - adding this feature would likely add arguably unnecessary complexity to the tests.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jmdobry
Re-enable cache. Remove .travis.yml
4cbff6d
ace-n
ace-n reviewed Sep 7, 2016
View reviewed changes
Comment thread bigquery/test/tables.test.js
assert.deepEqual(program.copyTable.firstCall.args.slice(0, -1),
[srcDataset, srcTable, destDataset, destTable]
);
assert.deepEqual(program.copyTable.firstCall.args.slice(0, -1), [srcDatasetId, srcTableId, destDatasetId, destTableId]);

@ace-n ace-n Sep 7, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

Nit: not personally a fan of lines > 100 chars.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jmdobry jmdobry Sep 7, 2016

Copy link
Copy Markdown
Member Author

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.

Perhaps in a separate PR we can consider switching from Semistandard to ESLint + JSCS to give us some configurability and better enforceability on our style?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ace-n

ace-n commented Sep 7, 2016

Copy link
Copy Markdown
Contributor

LGTM, but I think there's some App Engine dependency issue going on...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jmdobry
jmdobry merged commit b5f33bf into master Sep 7, 2016
@jmdobry
jmdobry deleted the simplify branch September 7, 2016 22:34
@snyk-bot snyk-bot mentioned this pull request Jul 11, 2020
[Snyk] Fix for 1 vulnerabilities ninadhatkar/nodejs-docs-samples#2
Open
@snyk-bot snyk-bot mentioned this pull request Aug 17, 2020
[Snyk] Fix for 1 vulnerabilities ninadhatkar/nodejs-docs-samples#21
Open
@snyk-bot snyk-bot mentioned this pull request Aug 28, 2020
[Snyk] Fix for 1 vulnerabilities ninadhatkar/nodejs-docs-samples#25
Open
@ninadhatkar ninadhatkar mentioned this pull request Feb 23, 2021
[Snyk] Fix for 2 vulnerabilities ninadhatkar/nodejs-docs-samples#59
Open
pattishin pushed a commit that referenced this pull request Nov 9, 2022
@release-please
chore: release 2.3.8 (#207)
c49e829
🤖 I have created a release \*beep\* \*boop\*
---
### [2.3.8](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.7...v2.3.8) (2021-08-17)


### Bug Fixes

* **build:** migrate to using main branch ([#206](https://www.github.com/googleapis/nodejs-game-servers/issues/206)) ([04998bf](https://www.github.com/googleapis/nodejs-game-servers/commit/04998bf4f24613792beb12fff9d1a14da795b74b))
* **deps:** google-gax v2.24.1 ([#208](https://www.github.com/googleapis/nodejs-game-servers/issues/208)) ([8462da4](https://www.github.com/googleapis/nodejs-game-servers/commit/8462da415e3df130356f70e34f97698628f48b2b))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@pattishin pattishin mentioned this pull request Nov 9, 2022
migrate code from googleapis/nodejs-game-servers #2818
Closed
pattishin pushed a commit that referenced this pull request Nov 9, 2022
@release-please
chore: release 2.3.8 (#207)
8af821e
🤖 I have created a release \*beep\* \*boop\*
---
### [2.3.8](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.7...v2.3.8) (2021-08-17)


### Bug Fixes

* **build:** migrate to using main branch ([#206](https://www.github.com/googleapis/nodejs-game-servers/issues/206)) ([04998bf](https://www.github.com/googleapis/nodejs-game-servers/commit/04998bf4f24613792beb12fff9d1a14da795b74b))
* **deps:** google-gax v2.24.1 ([#208](https://www.github.com/googleapis/nodejs-game-servers/issues/208)) ([8462da4](https://www.github.com/googleapis/nodejs-game-servers/commit/8462da415e3df130356f70e34f97698628f48b2b))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@pattishin pattishin mentioned this pull request Nov 9, 2022
migrate code from googleapis/nodejs-game-servers #2819
Closed
pattishin pushed a commit that referenced this pull request Nov 9, 2022
@release-please
chore: release 2.3.8 (#207)
9629897
🤖 I have created a release \*beep\* \*boop\*
---
### [2.3.8](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.7...v2.3.8) (2021-08-17)


### Bug Fixes

* **build:** migrate to using main branch ([#206](https://www.github.com/googleapis/nodejs-game-servers/issues/206)) ([04998bf](https://www.github.com/googleapis/nodejs-game-servers/commit/04998bf4f24613792beb12fff9d1a14da795b74b))
* **deps:** google-gax v2.24.1 ([#208](https://www.github.com/googleapis/nodejs-game-servers/issues/208)) ([8462da4](https://www.github.com/googleapis/nodejs-game-servers/commit/8462da415e3df130356f70e34f97698628f48b2b))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@pattishin pattishin mentioned this pull request Nov 9, 2022
migrate code from googleapis/nodejs-game-servers #2820
Closed
@NimJay NimJay mentioned this pull request Nov 10, 2022
migrate code from googleapis/nodejs-language #2827
Merged
NimJay pushed a commit that referenced this pull request Nov 10, 2022
@renovate @callmehiphop
chore(deps): update dependency mocha to v6 (#207)
66d1f64
NimJay pushed a commit that referenced this pull request Nov 10, 2022
@renovate @NimJay
chore(deps): update dependency mocha to v6 (#207)
9bd5efe
@pattishin pattishin mentioned this pull request Nov 11, 2022
migrate code from googleapis/nodejs-game-servers #2837
Merged
NimJay pushed a commit that referenced this pull request Nov 11, 2022
@release-please @NimJay
chore: release 2.3.8 (#207)
89ecb50
🤖 I have created a release \*beep\* \*boop\*
---
### [2.3.8](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.7...v2.3.8) (2021-08-17)


### Bug Fixes

* **build:** migrate to using main branch ([#206](https://www.github.com/googleapis/nodejs-game-servers/issues/206)) ([04998bf](https://www.github.com/googleapis/nodejs-game-servers/commit/04998bf4f24613792beb12fff9d1a14da795b74b))
* **deps:** google-gax v2.24.1 ([#208](https://www.github.com/googleapis/nodejs-game-servers/issues/208)) ([8462da4](https://www.github.com/googleapis/nodejs-game-servers/commit/8462da415e3df130356f70e34f97698628f48b2b))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
ahrarmonsur pushed a commit that referenced this pull request Nov 16, 2022
@renovate-bot @JustinBeckwith
fix(deps): update dependency @google-cloud/storage to v4 (#207)
15a1c5b
ahrarmonsur pushed a commit that referenced this pull request Nov 16, 2022
@renovate-bot @JustinBeckwith
fix(deps): update dependency @google-cloud/storage to v4 (#207)
dbe9d4e
ahrarmonsur pushed a commit that referenced this pull request Nov 16, 2022
@renovate-bot @JustinBeckwith
fix(deps): update dependency @google-cloud/storage to v4 (#207)
56e437f
ahrarmonsur pushed a commit that referenced this pull request Nov 16, 2022
@renovate-bot @JustinBeckwith
fix(deps): update dependency @google-cloud/storage to v4 (#207)
cb0d518
ahrarmonsur pushed a commit that referenced this pull request Nov 16, 2022
@renovate-bot @JustinBeckwith
fix(deps): update dependency @google-cloud/storage to v4 (#207)
294716a
@ahrarmonsur ahrarmonsur mentioned this pull request Nov 16, 2022
migrate code from googleapis/nodejs-asset #2856
Merged
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@renovate-bot Ace Nassri
fix(deps): update dependency @google-cloud/storage to v4 (#207)
0f83444
@kweinmeister kweinmeister mentioned this pull request Nov 18, 2022
migrate code from googleapis/nodejs-text-to-speech #2872
Merged
kweinmeister pushed a commit that referenced this pull request Nov 18, 2022
@JustinBeckwith
refactor: use execSync for tests (#207)
944aa05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@ace-n ace-n

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@jmdobry @ace-n
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.