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 — Add remaining Translate samples. by jmdobry · Pull Request #197 · GoogleCloudPlatform/nodejs-docs-samples

Conversation

@jmdobry

@jmdobry jmdobry commented Aug 30, 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 Aug 30, 2016
ace-n
ace-n reviewed Aug 31, 2016
View reviewed changes
Comment thread translate/test/translate.test.js
var sample = getSample();
var callback = sinon.stub();
sample.mocks.translate.getLanguages = sinon.stub().callsArgWith(0, error);
sample.mocks.translate.getLanguages.yields(error);

@ace-n ace-n Aug 31, 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.

Nit: this should be in a separate PR - not that I care. 😛

Sorry, something went wrong.

Uh oh!

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

All reactions
@ace-n

ace-n commented Aug 31, 2016

Copy link
Copy Markdown
Contributor

Left a few comments. Fix those and it should be LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jmdobry
jmdobry force-pushed the translate branch from cf836ca to 5df96a4 Compare August 31, 2016 16:28
@jmdobry

jmdobry commented Aug 31, 2016

Copy link
Copy Markdown
Member Author

Addressed comments.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jmdobry
jmdobry force-pushed the translate branch from 5df96a4 to 89aa0d7 Compare August 31, 2016 16:29
ace-n
ace-n reviewed Aug 31, 2016
View reviewed changes
Comment thread translate/system-test/translate.test.js Outdated
program.listLanguages('es', apiKey, function (err, languages) {
assert.ifError(err);
assert(Array.isArray(languages));
assert(languages.length > 0);

@ace-n ace-n Aug 31, 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.

Can/should we assert that the target is recognized here? e.g.

assert.equal(languages.contains("Espanol"), true);

Sorry, something went wrong.

Uh oh!

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

All reactions
@ace-n

ace-n commented Aug 31, 2016

Copy link
Copy Markdown
Contributor

Just a few minor nits - fix those and I'll LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jmdobry
jmdobry force-pushed the translate branch 3 times, most recently from f840a08 to eff41c3 Compare September 1, 2016 16:34
@jmdobry

jmdobry commented Sep 1, 2016

Copy link
Copy Markdown
Member Author

Addressed comments.

All reactions

Sorry, something went wrong.

Uh oh!

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

@codecov-io

codecov-io commented Sep 1, 2016

Copy link
Copy Markdown

Current coverage is 89.17% (diff: 100%)

Merging #197 into master will increase coverage by 0.04%

@@             master       #197   diff @@
==========================================
  Files            57         57          
  Lines          2382       2392    +10   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           2123       2133    +10   
  Misses          259        259          
  Partials          0          0          

Powered by Codecov. Last update 2f9b34f...eff41c3

All reactions

Sorry, something went wrong.

Uh oh!

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

ace-n
ace-n reviewed Sep 1, 2016
View reviewed changes
Comment thread translate/test/translate.test.js
sinon.stub(program, 'detectLanguage');
program.main(['detect', text, '-k', apiKey]);
assert.equal(program.detectLanguage.calledOnce, true);
assert.deepEqual(program.detectLanguage.firstCall.args.slice(0, -1), [[text]]);

@ace-n ace-n Sep 1, 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 this be setting an environment variable? If so, can we test that?

Sorry, something went wrong.

Uh oh!

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

All reactions

@jmdobry jmdobry Sep 1, 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.

Done.

Sorry, something went wrong.

Uh oh!

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

All reactions
@ace-n

ace-n commented Sep 1, 2016

Copy link
Copy Markdown
Contributor

LGTM, other than a few nits.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jmdobry
jmdobry force-pushed the translate branch from eff41c3 to 1cce80a Compare September 1, 2016 20:41
@jmdobry
Add remaining Translate samples.
1cce80a
@ace-n ace-n mentioned this pull request Nov 11, 2022
migrate code from googleapis/nodejs-document-ai #2842
Closed
ace-n pushed a commit that referenced this pull request Nov 11, 2022
@release-please
chore: release 2.8.0 (#197)
328d803
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this pull request Nov 11, 2022
@yoshi-automation @JustinBeckwith
chore: release 1.2.0 (#197)
455993a
* updated CHANGELOG.md

* updated package.json

* updated samples/package.json
ace-n pushed a commit that referenced this pull request Nov 11, 2022
@release-please
chore: release 2.8.0 (#197)
0ba68c4
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@ace-n ace-n mentioned this pull request Nov 11, 2022
migrate code from googleapis/nodejs-document-ai #2843
Merged
ace-n pushed a commit that referenced this pull request Nov 12, 2022
@release-please Ace Nassri
chore: release 2.8.0 (#197)
9123754
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this pull request Nov 14, 2022
@release-please
chore: release 1.4.3 (#197)
82d291a
@ace-n ace-n mentioned this pull request Nov 14, 2022
migrate code from googleapis/nodejs-scheduler #2848
Closed
ace-n pushed a commit that referenced this pull request Nov 14, 2022
@release-please
chore: release 1.4.3 (#197)
83d00f5
@ace-n ace-n mentioned this pull request Nov 14, 2022
migrate code from googleapis/nodejs-scheduler #2849
Merged
ace-n pushed a commit that referenced this pull request Nov 14, 2022
@yoshi-automation Ace Nassri
chore: release 1.2.0 (#197)
082c009
* updated CHANGELOG.md

* updated package.json

* updated samples/package.json
ace-n pushed a commit that referenced this pull request Nov 14, 2022
@release-please Ace Nassri
chore: release 2.8.0 (#197)
94adf3b
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this pull request Nov 14, 2022
@release-please Ace Nassri
chore: release 1.4.3 (#197)
8736416
ace-n pushed a commit that referenced this pull request Nov 15, 2022
@release-please Ace Nassri
chore: release 1.4.3 (#197)
01688ec
ace-n pushed a commit that referenced this pull request Nov 15, 2022
@yoshi-automation Ace Nassri
chore: release 1.2.0 (#197)
e576033
* updated CHANGELOG.md

* updated package.json

* updated samples/package.json
ace-n pushed a commit that referenced this pull request Nov 15, 2022
@yoshi-automation Ace Nassri
chore: release 1.2.0 (#197)
62cf4ed
* updated CHANGELOG.md

* updated package.json

* updated samples/package.json
@telpirion telpirion mentioned this pull request Nov 16, 2022
chore(vision): migrate code from googleapis/nodejs-vision #2858
Merged
telpirion pushed a commit that referenced this pull request Nov 16, 2022
@nirupa-kumar @JustinBeckwith
docs: Vision AutoML samples (#197)
7b4b7b8
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@yoshi-automation Ace Nassri
chore: release 1.2.0 (#197)
a7af828
* updated CHANGELOG.md

* updated package.json

* updated samples/package.json
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@yoshi-automation Ace Nassri
chore: release 1.2.0 (#197)
7acaa01
* updated CHANGELOG.md

* updated package.json

* updated samples/package.json
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@jmdobry
Add remaining Translate samples. (#197)
426a8e7
@ace-n ace-n mentioned this pull request Nov 17, 2022
migrate code from googleapis/nodejs-translate #2862
Merged
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@jmdobry Ace Nassri
Add remaining Translate samples. (#197)
6bb402a
ahrarmonsur pushed a commit that referenced this pull request Nov 17, 2022
@yoshi-automation Ahrar Monsur
chore: release 1.2.0 (#197)
a80a2c3
* updated CHANGELOG.md

* updated package.json

* updated samples/package.json
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@jmdobry Ace Nassri
Add remaining Translate samples. (#197)
34e5902
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@jmdobry Ace Nassri
Add remaining Translate samples. (#197)
e7416cf
ace-n pushed a commit that referenced this pull request Nov 17, 2022
@jmdobry Ace Nassri
Add remaining Translate samples. (#197)
b488ea8
jsimonweb pushed a commit to jsimonweb/nodejs-docs-samples that referenced this pull request Dec 12, 2022
@enocom
feat: configure the proxy with environment variables (GoogleCloudPlat…
cfcf17d
…form#197)

This is a port of
GoogleCloudPlatform/cloud-sql-proxy#1514.
kweinmeister pushed a commit that referenced this pull request Jan 11, 2023
@Arakel2811 @alexander-fenster
samples: properly catch errors (#197)
82ecff4
* Fixed issues in some cases when user setting up environment.

* fix: use bash trap

Co-authored-by: Alexander Fenster <[email protected]>
@kweinmeister kweinmeister mentioned this pull request Jan 11, 2023
migrate code from googleapis/nodejs-retail #2975
Merged
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.

3 participants

@jmdobry @ace-n @codecov-io
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.