Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

feat(userAgent): allow for optional user agent to be provided#1313

Merged
frankyn merged 3 commits intogoogleapis:masterfrom
averikitsch:user-agent
Oct 26, 2020
Merged

feat(userAgent): allow for optional user agent to be provided#1313
frankyn merged 3 commits intogoogleapis:masterfrom
averikitsch:user-agent

Conversation

@averikitsch
Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@averikitsch averikitsch requested a review from a team October 16, 2020 17:06
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 16, 2020
@averikitsch
Copy link
Copy Markdown
Contributor Author

@JustinBeckwith

Copy link
Copy Markdown
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 can't say with 100% confidence what we want to have happen on the backend will happen, because storage has some weirdness with OnePlatform and usage tracking. @frankyn is there a way to test this? That having been said, this don't hurt.

@frankyn
Copy link
Copy Markdown
Contributor

frankyn commented Oct 16, 2020

I'll follow-up with both of you over email due to internal only information.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/nodejs-storage API. label Oct 17, 2020
@averikitsch
Copy link
Copy Markdown
Contributor Author

Looks like the system tests may be flaky.

@frankyn
Copy link
Copy Markdown
Contributor

frankyn commented Oct 22, 2020

Project overground may be causing this... will raise in today's sync and report back.

cc: @amanda-tarafa

  1) storage
       HMAC keys
         should create an HMAC key for a service account:
     Error: Request violates constraint 'constraints/iam.disableServiceAccountKeyCreation'
      at new ApiError (node_modules/@google-cloud/common/build/src/util.js:59:15)
      at Util.parseHttpRespBody (node_modules/@google-cloud/common/build/src/util.js:194:38)
      at Util.handleResp (node_modules/@google-cloud/common/build/src/util.js:135:117)
      at /workspace/node_modules/@google-cloud/common/build/src/util.js:434:22
      at onResponse (node_modules/retry-request/index.js:214:7)
      at /workspace/node_modules/teeny-request/build/src/index.js:219:13
          -> /workspace/node_modules/teeny-request/src/index.ts:325:11
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5

@amanda-tarafa
Copy link
Copy Markdown

Yes, definetely seems to be related to overground. Create an internal bug, and assign it to me, with the following info:

  • Project ID this is happening.
  • What exactly is this method trying to do? Is it really trying to create and download a Service Account Key?

@frankyn frankyn added the automerge Merge the pull request once unit tests and other checks pass. label Oct 26, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 26, 2020

Codecov Report

Merging #1313 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1313   +/-   ##
=======================================
  Coverage   99.00%   99.00%           
=======================================
  Files          14       14           
  Lines       11712    11715    +3     
  Branches      582      582           
=======================================
+ Hits        11595    11598    +3     
  Misses        117      117           
Impacted Files Coverage Δ
src/storage.ts 100.00% <100.00%> (ø)

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 5ec256e...5982450. Read the comment docs.

@frankyn frankyn merged commit 13a064f into googleapis:master Oct 26, 2020
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Oct 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storage Issues related to the googleapis/nodejs-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants