Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

chore: merge options.debug and options #718

Conversation

DominicKramer
Copy link
Contributor

If the options object given to the start() function has a
debug property then, previously, the options used would be
options.debug. Thus anything set in options itself, such
as the projectId would not be used by the agent. This
change suggests using the merger of options and options.debug.

If the `options` object given to the `start()` function has a
debug property then, previously, the options used would be
`options.debug`.  Thus anything set in `options` itself, such
as the `projectId` would not be used by the agent.  This
change suggests using the merger of `options` and `options.debug`.
@DominicKramer DominicKramer requested a review from a team May 31, 2019 22:32
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 31, 2019
@codecov
Copy link

codecov bot commented May 31, 2019

Codecov Report

Merging #718 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #718      +/-   ##
==========================================
+ Coverage   85.56%   85.63%   +0.07%     
==========================================
  Files          13       13              
  Lines         942      947       +5     
  Branches      193      193              
==========================================
+ Hits          806      811       +5     
  Misses         75       75              
  Partials       61       61
Impacted Files Coverage Δ
src/index.ts 94.11% <100%> (+2.45%) ⬆️

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 dfa349e...c900cac. Read the comment docs.


/**
* If the given `options` object has a `debug` property
* of the same type, this function returns the union of the
Copy link
Contributor

Choose a reason for hiding this comment

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

You should document which one takes precedence if both objects have identically named members, here and anywhere else where the debug field is referenced.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@DominicKramer DominicKramer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 1, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 1, 2019
@DominicKramer DominicKramer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 5, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 5, 2019
@DominicKramer DominicKramer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 5, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 5, 2019
@DominicKramer DominicKramer requested a review from kjin June 5, 2019 16:42
@DominicKramer DominicKramer merged commit e2f52b1 into googleapis:master Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants