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 — Storage ACL samples. by jmdobry · Pull Request #172 · GoogleCloudPlatform/nodejs-docs-samples

Conversation

@jmdobry

@jmdobry jmdobry commented Aug 18, 2016

Copy link
Copy Markdown
Member
  • - Cloud Storage ACL samples
  • - Unit tests
  • - System tests
  • - Sample CLI
  • - storage/README.md updated

Sorry, something went wrong.

Uh oh!

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

All reactions
@jmdobry
Storage ACL samples.
4274735
@jmdobry jmdobry assigned ace-n Aug 18, 2016
@jmdobry

jmdobry commented Aug 18, 2016

Copy link
Copy Markdown
Member Author

@ace-n Ready for review

All reactions

Sorry, something went wrong.

Uh oh!

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

ace-n
ace-n reviewed Aug 18, 2016
View reviewed changes
Comment thread storage/README.md
__Usage:__ `node acl --help`

```
Commands:

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

Wishlist/Pipe dream: auto-generate these.

Sorry, something went wrong.

Uh oh!

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

All reactions

@jmdobry jmdobry Aug 18, 2016 •
edited
Loading

Uh oh!

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

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.

You mean auto-generate all of README.md? The usage information was generated, I just ran node acl --help and pasted the output into README.md. I used to have to write all that by hand, now most of README.md is generated.

Sorry, something went wrong.

Uh oh!

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

All reactions

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

Generated in the "I don't have to even paste things in, I just run a script" sense.

Sorry, something went wrong.

Uh oh!

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

All reactions

@jmdobry jmdobry Aug 18, 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.

I think there's negligible work to be saved by scripting the copy paste. I mean, it could be scripted, but we'd need to devise a manifest.json file or something that could give the script meta information about the samples in the directory. Maybe it's not such a bad idea...

Sorry, something went wrong.

Uh oh!

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

All reactions
@jmdobry
Added links to relevant gcloud-node methods.
dd1b552
@codecov-io

codecov-io commented Aug 18, 2016

Copy link
Copy Markdown

Current coverage is 87.09% (diff: 97.87%)

Merging #172 into master will increase coverage by 0.20%

@@             master       #172   diff @@
==========================================
  Files            56         57     +1   
  Lines          2486       2533    +47   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           2160       2206    +46   
- Misses          326        327     +1   
  Partials          0          0          

Powered by Codecov. Last update e8e3e9d...dd1b552

All reactions

Sorry, something went wrong.

Uh oh!

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

ace-n
ace-n reviewed Aug 18, 2016
View reviewed changes
Comment thread storage/test/acl.test.js

sample.program.deleteAccessControl(options, callback);

assert(callback.calledOnce, 'callback called once');

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

What are the tradeoffs of this pattern vs. defining a callback function and putting the tests in the there? (And which should I be using in my tests?)

Sorry, something went wrong.

Uh oh!

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

All reactions

@jmdobry jmdobry Aug 18, 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.

I would say the two main benefits are:

  1. Use of sinon.stub as the callback allows for additional assertions about the code execution (it gathers more info about how the callback is used)
  2. The test function now actually looks synchronous in addition to being synchronous.

Sorry, something went wrong.

Uh oh!

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

All reactions
@ace-n

ace-n commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

LGTM other than a few minor nits.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jmdobry
jmdobry merged commit e4958b0 into master Aug 18, 2016
@jmdobry
jmdobry deleted the permissions branch August 18, 2016 07:06
This was referenced Mar 11, 2022
[Snyk] Upgrade @google-cloud/storage from 1.6.0 to 1.7.0 theWindSweptDev/nodejs-docs-samples#27
Open
[Snyk] Upgrade @google-cloud/storage from 1.6.0 to 1.7.0 theWindSweptDev/nodejs-docs-samples#51
Open
[Snyk] Upgrade prompt from 1.0.0 to 1.2.2 theWindSweptDev/nodejs-docs-samples#54
Open
[Snyk] Upgrade prompt from 1.0.0 to 1.2.2 theWindSweptDev/nodejs-docs-samples#61
Open
kweinmeister pushed a commit that referenced this pull request Nov 10, 2022
@renovate @ofrobots
chore(deps): lock file maintenance (#172)
0dd9f74
@kweinmeister kweinmeister mentioned this pull request Nov 10, 2022
migrate code from googleapis/nodejs-error-reporting #2821
Merged
ace-n pushed a commit that referenced this pull request Nov 11, 2022
@renovate Ace Nassri
chore(deps): lock file maintenance (#172)
7494bea
ace-n pushed a commit that referenced this pull request Nov 11, 2022
@renovate Ace Nassri
chore(deps): lock file maintenance (#172)
5295718
@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
@alixhami
Udpate Beta Vision samples to use beta tags (#172)
d74b2c8
unforced pushed a commit that referenced this pull request Nov 17, 2022
@release-please
chore: release 3.2.4 (#173)
92b06a7
🤖 I have created a release \*beep\* \*boop\*
---
### [3.2.4](https://www.github.com/googleapis/nodejs-service-directory/compare/v3.2.3...v3.2.4) (2021-08-17)


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#172](https://www.github.com/googleapis/nodejs-service-directory/issues/172)) ([f6a501e](https://www.github.com/googleapis/nodejs-service-directory/commit/f6a501ea9d4ff30a6df9fbfc74db80c4e402a932))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
unforced pushed a commit that referenced this pull request Nov 17, 2022
@release-please Aaron Gabriel Neyer
chore: release 3.2.4 (#173)
a24783f
🤖 I have created a release \*beep\* \*boop\*
---
### [3.2.4](https://www.github.com/googleapis/nodejs-service-directory/compare/v3.2.3...v3.2.4) (2021-08-17)


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#172](https://www.github.com/googleapis/nodejs-service-directory/issues/172)) ([f6a501e](https://www.github.com/googleapis/nodejs-service-directory/commit/f6a501ea9d4ff30a6df9fbfc74db80c4e402a932))
---


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 17, 2022
@release-please Ahrar Monsur
chore: release 3.2.4 (#173)
8afc36b
🤖 I have created a release \*beep\* \*boop\*
---
### [3.2.4](https://www.github.com/googleapis/nodejs-service-directory/compare/v3.2.3...v3.2.4) (2021-08-17)


### Bug Fixes

* **deps:** google-gax v2.24.1 ([#172](https://www.github.com/googleapis/nodejs-service-directory/issues/172)) ([f6a501e](https://www.github.com/googleapis/nodejs-service-directory/commit/f6a501ea9d4ff30a6df9fbfc74db80c4e402a932))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
pattishin pushed a commit that referenced this pull request Nov 18, 2022
@release-please
chore: release 1.9.1 (#173)
4714ba5
🤖 I have created a release \*beep\* \*boop\*
---
### [1.9.1](https://www.github.com/googleapis/nodejs-ai-platform/compare/v1.9.0...v1.9.1) (2021-07-21)


### Bug Fixes

* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#172](https://www.github.com/googleapis/nodejs-ai-platform/issues/172)) ([d22eceb](https://www.github.com/googleapis/nodejs-ai-platform/commit/d22ecebc4693b63516a69753c19fa7a7a400464f))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
NimJay pushed a commit that referenced this pull request Nov 18, 2022
@release-please
chore: release 2.1.0 (#160)
232972f
🤖 I have created a release \*beep\* \*boop\* 
---
## [2.1.0](https://www.github.com/googleapis/nodejs-datacatalog/compare/v2.0.0...v2.1.0) (2020-06-16)


### Features

* add order field to TagField and TagTemplateField ([#157](https://www.github.com/googleapis/nodejs-datacatalog/issues/157)) ([70c23c2](https://www.github.com/googleapis/nodejs-datacatalog/commit/70c23c2b609bd24901dc902090e23fbf92b55895))
* move ts target to es2018 from es2016 ([#172](https://www.github.com/googleapis/nodejs-datacatalog/issues/172)) ([e354dde](https://www.github.com/googleapis/nodejs-datacatalog/commit/e354ddeeeedd3e106c50ed579075f23c9d9c5bb5))
* promote library to GA ([#177](https://www.github.com/googleapis/nodejs-datacatalog/issues/177)) ([ac11090](https://www.github.com/googleapis/nodejs-datacatalog/commit/ac110906b723f362024318295e3de6743c905b7e))


### Bug Fixes

* proper fallback option handling ([51df672](https://www.github.com/googleapis/nodejs-datacatalog/commit/51df6721306ab6d2d9bf6919b0f3f432ca85b4ab))
* regenerate unit tests ([#163](https://www.github.com/googleapis/nodejs-datacatalog/issues/163)) ([4593117](https://www.github.com/googleapis/nodejs-datacatalog/commit/45931176d266d364e0508039cf6a4e284ad2923d))
* synth.py clean up for multiple version ([#167](https://www.github.com/googleapis/nodejs-datacatalog/issues/167)) ([c799604](https://www.github.com/googleapis/nodejs-datacatalog/commit/c799604b2d29269006ff39748afb78302ce46ca2))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
NimJay pushed a commit that referenced this pull request Nov 18, 2022
@release-please @NimJay
chore: release 2.1.0 (#160)
190c8aa
🤖 I have created a release \*beep\* \*boop\* 
---
## [2.1.0](https://www.github.com/googleapis/nodejs-datacatalog/compare/v2.0.0...v2.1.0) (2020-06-16)


### Features

* add order field to TagField and TagTemplateField ([#157](https://www.github.com/googleapis/nodejs-datacatalog/issues/157)) ([70c23c2](https://www.github.com/googleapis/nodejs-datacatalog/commit/70c23c2b609bd24901dc902090e23fbf92b55895))
* move ts target to es2018 from es2016 ([#172](https://www.github.com/googleapis/nodejs-datacatalog/issues/172)) ([e354dde](https://www.github.com/googleapis/nodejs-datacatalog/commit/e354ddeeeedd3e106c50ed579075f23c9d9c5bb5))
* promote library to GA ([#177](https://www.github.com/googleapis/nodejs-datacatalog/issues/177)) ([ac11090](https://www.github.com/googleapis/nodejs-datacatalog/commit/ac110906b723f362024318295e3de6743c905b7e))


### Bug Fixes

* proper fallback option handling ([51df672](https://www.github.com/googleapis/nodejs-datacatalog/commit/51df6721306ab6d2d9bf6919b0f3f432ca85b4ab))
* regenerate unit tests ([#163](https://www.github.com/googleapis/nodejs-datacatalog/issues/163)) ([4593117](https://www.github.com/googleapis/nodejs-datacatalog/commit/45931176d266d364e0508039cf6a4e284ad2923d))
* synth.py clean up for multiple version ([#167](https://www.github.com/googleapis/nodejs-datacatalog/issues/167)) ([c799604](https://www.github.com/googleapis/nodejs-datacatalog/commit/c799604b2d29269006ff39748afb78302ce46ca2))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
pattishin pushed a commit that referenced this pull request Nov 22, 2022
@release-please @pattishin
chore: release 1.9.1 (#173)
1732160
🤖 I have created a release \*beep\* \*boop\*
---
### [1.9.1](https://www.github.com/googleapis/nodejs-ai-platform/compare/v1.9.0...v1.9.1) (2021-07-21)


### Bug Fixes

* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#172](https://www.github.com/googleapis/nodejs-ai-platform/issues/172)) ([d22eceb](https://www.github.com/googleapis/nodejs-ai-platform/commit/d22ecebc4693b63516a69753c19fa7a7a400464f))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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 @codecov-io @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.