Skip to content
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

fix(ts): Update bucket options types #518

Merged
merged 3 commits into from
Nov 19, 2018

Conversation

bittlingmayer
Copy link
Contributor

@bittlingmayer bittlingmayer commented Nov 16, 2018

Fixes #346

  • Tests and linter pass

I did not check.

  • Code coverage does not decrease (if any source code was changed)

I did not check.

  • Appropriate docs were updated (if necessary)

I have not read all the docs, but the comments already suggested that this was possible, now the code is in harmony with them.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Nov 16, 2018
@bittlingmayer
Copy link
Contributor Author

I signed it.

@googlebot
Copy link

CLAs look good, thanks!

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Nov 16, 2018
@jkwlui jkwlui added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 16, 2018
@jkwlui jkwlui self-requested a review November 16, 2018 21:09
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 16, 2018
@JustinBeckwith
Copy link
Contributor

👋 thanks for the PR! It looks like we needed that property :)

> @google-cloud/[email protected] compile /home/node/project
> tsc -p .

system-test/storage.ts:2124:50 - error TS2345: Argument of type '{ location: string; }' is not assignable to parameter of type 'BucketOptions'.
  Object literal may only specify known properties, and 'location' does not exist in type 'BucketOptions'.

2124         bucket = storage.bucket(generateName(), {location: BUCKET_LOCATION});

Can you try to run npm run compile and npm test, fix the issues, and submit again?

@JustinBeckwith JustinBeckwith changed the title Update storage.ts fix(ts): Update bucket options types Nov 16, 2018
Copy link
Contributor

@JustinBeckwith JustinBeckwith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we needed that location field there :)

@bittlingmayer
Copy link
Contributor Author

@googlebot
Copy link

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 or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok 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 all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Nov 19, 2018
@stephenplusplus
Copy link
Contributor

@JustinBeckwith CLA help?

@JustinBeckwith JustinBeckwith added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Nov 19, 2018
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

@JustinBeckwith JustinBeckwith added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2018
@JustinBeckwith JustinBeckwith merged commit a0cddd2 into googleapis:master Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants