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 — KMS: Makes samples consistent across languages. by white0ut · Pull Request #459 · GoogleCloudPlatform/nodejs-docs-samples

Conversation

@white0ut

@white0ut white0ut commented Aug 22, 2017

Copy link
Copy Markdown

This change, in particular:

  • Consistently names variables with the API (locationId, keyRingId,
    cryptoKeyId).
  • Displays the function name in the region tag.
  • Correctly writes decoded base64 to disk and encodes file contents
    before calling KMS.
  • Labels parameters as plaintextFileName and ciphertextFileName, rather
    than inFile and outFile where applicable.

Tracking bug: http://b/64758639

Sorry, something went wrong.

Uh oh!

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

All reactions
@white0ut
KMS: Makes samples consistent across languages.
a0d6c8f
This change, in particular:

* Consistently names variables with the API (locationId, keyRingId,
  cryptoKeyId).
* Displays the function name in the region tag.
* Correctly writes decoded base64 to disk  and encodes file contents
  before calling KMS.
* Labels parameters as plaintextFileName and ciphertextFileName, rather
  than inFile and outFile where applicable.

Tracking bug: http://b/64758639
@ace-n

ace-n commented Aug 22, 2017

Copy link
Copy Markdown
Contributor

I agree with most of these changes, save for the region tag modifications. These snippets are meant to be standalone pieces of code that can be run without being wrapped in a function - the sole purpose of the function wrapper is to make testing easier.

@jmdobry might have something to add though.

All reactions

Sorry, something went wrong.

Uh oh!

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

jmdobry
jmdobry requested changes Aug 22, 2017
View reviewed changes

@jmdobry jmdobry left a comment

Copy link
Copy Markdown
Member

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.

@ace-n is right. The variable name changes are fine, but the region tags need to go back to the way they were. Otherwise LGTM.

Sorry, something went wrong.

Uh oh!

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

All reactions
@white0ut
Reverting region tags to isolate the code samples.
70e22b3
@codecov

codecov Bot commented Aug 23, 2017 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

Merging #459 into master will decrease coverage by 70.46%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #459       +/-   ##
===========================================
- Coverage   83.92%   13.46%   -70.47%     
===========================================
  Files           4        3        -1     
  Lines         423      208      -215     
===========================================
- Hits          355       28      -327     
- Misses         68      180      +112
Impacted Files Coverage Δ
vision/faceDetection.js 8.62% <0%> (-72.42%) ⬇️
vision/textDetection.js 12.05% <0%> (-62.42%) ⬇️
vision/quickstart.js 66.66% <0%> (-22.23%) ⬇️
vision/detect.js

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1df42ed...4f17304. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

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

@white0ut

white0ut commented Aug 23, 2017

Copy link
Copy Markdown
Author

SGTM, thanks for the quick response.

Fixed.

All reactions

Sorry, something went wrong.

Uh oh!

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

white0ut and others added 2 commits August 22, 2017 21:40
@white0ut
Merge branch 'master' into kms-consistent-samples
4d317a7
@jmdobry
Fix tests and regenerate README.
4f17304
@googlebot

googlebot commented Aug 23, 2017

Copy link
Copy Markdown

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this State. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jmdobry

jmdobry commented Aug 23, 2017

Copy link
Copy Markdown
Member

I moved your branch to #459 so the tests would run. Closing in favor of #459

All reactions

Sorry, something went wrong.

Uh oh!

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

@jmdobry jmdobry closed this Aug 23, 2017
This was referenced Mar 11, 2022
[Snyk] Upgrade got from 8.2.0 to 8.3.2 theWindSweptDev/nodejs-docs-samples#37
Open
[Snyk] Upgrade got from 8.2.0 to 8.3.2 theWindSweptDev/nodejs-docs-samples#41
Open
[Snyk] Upgrade got from 8.2.0 to 8.3.2 theWindSweptDev/nodejs-docs-samples#44
Open
@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
@Strykrol
automl: delete unused samples (#459)
9f99edf
- [x] Ensure the tests and linter pass
- [ obviously a decrease...] Code coverage does not decrease (if any source code was changed)
- [please review] Appropriate docs were updated (if necessary)

Samples are not in localized docs nor on C.G.C. These deletions are part of an internal 'clean-up' to reduce unused code in sample repositories.
NimJay pushed a commit that referenced this pull request Nov 10, 2022
@Strykrol @NimJay
automl: delete unused samples (#459)
9d169a9
- [x] Ensure the tests and linter pass
- [ obviously a decrease...] Code coverage does not decrease (if any source code was changed)
- [please review] Appropriate docs were updated (if necessary)

Samples are not in localized docs nor on C.G.C. These deletions are part of an internal 'clean-up' to reduce unused code in sample repositories.
ahrarmonsur pushed a commit that referenced this pull request Nov 18, 2022
@release-please @JustinBeckwith
chore: release 0.14.0 (#459)
5bea95a
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
ahrarmonsur pushed a commit that referenced this pull request Nov 18, 2022
@release-please @JustinBeckwith
chore: release 0.14.0 (#459)
35e2c3c
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
@ahrarmonsur ahrarmonsur mentioned this pull request Nov 18, 2022
migrate code from googleapis/nodejs-dialogflow #2873
Merged
NimJay pushed a commit that referenced this pull request Nov 18, 2022
@release-please @NimJay
chore: release 0.14.0 (#459)
fb875c9
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
Shabirmean pushed a commit that referenced this pull request Feb 16, 2023
@renovate-bot
chore(deps): update dependency pngjs to v5 (#459)
63d6ab5
@Shabirmean Shabirmean mentioned this pull request Feb 16, 2023
samples: migrate code from googleapis/nodejs-dlp #3035
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jmdobry jmdobry jmdobry requested changes

Uh oh!

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

Assignees

No one assigned

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.

4 participants

@white0ut @ace-n @googlebot @jmdobry
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.