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

Update grpc creds #91

Merged
merged 5 commits into from Aug 15, 2017
Merged

Conversation

michaelbausor
Copy link
Contributor

Restructure grpcCredentialsHelpers and add support for passing the Channel and forceNewChannel parameters.

Corresponding toolkit PR: googleapis/gapic-generator#1454

cc @dwsupplee @jdpedrie

@codecov-io
Copy link

codecov-io commented Aug 7, 2017

Codecov Report

Merging #91 into master will increase coverage by 1.12%.
The diff coverage is 92.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
+ Coverage   89.16%   90.29%   +1.12%     
==========================================
  Files          32       33       +1     
  Lines        2179     2205      +26     
==========================================
+ Hits         1943     1991      +48     
+ Misses        236      214      -22
Impacted Files Coverage Δ
src/BackoffSettings.php 100% <100%> (ø) ⬆️
src/GrpcCredentialsHelper.php 100% <100%> (ø) ⬆️
src/ValidationTrait.php 83.33% <83.33%> (ø)
src/LongRunning/OperationsGapicClient.php 90.41% <90.41%> (ø)
src/Testing/MockStubTrait.php 91.42% <0%> (+4.28%) ⬆️
src/Testing/SerializationTrait.php 92.85% <0%> (+14.28%) ⬆️

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 aacf4c6...4c7a033. Read the comment docs.

@michaelbausor
Copy link
Contributor Author

@garrettjonesgoogle @shinfan @neozwu Hi all, gentle ping on this after fixit week

@shinfan
Copy link
Contributor

shinfan commented Aug 14, 2017

Is there PR fully auto-updated from the toolkit change? Is there any manual update?

@michaelbausor
Copy link
Contributor Author

@shinfan Are you asking if this PR is completely auto-generated? This PR does contain manual changes, but also adds autogenerated files for longrunning (sorry if this is not what you meant)

$credentialsLoader = $opts['credentialsLoader'];
} else {
$credentialsLoader = $this->getADCCredentials($scopes);
if (empty($args['credentialsLoader'])) {

This comment was marked as spam.

This comment was marked as spam.

/**
* Creates a gRPC client stub.
*
* @param callable $generatedCreateStub
* Function callback which must accept two arguments ($hostname, $opts)
* Function callback which must accept two arguments ($hostname, $opts, $channel)

This comment was marked as spam.

This comment was marked as spam.

Copy link
Contributor Author

@michaelbausor michaelbausor left a comment

Choose a reason for hiding this comment

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

PTAL

/**
* Creates a gRPC client stub.
*
* @param callable $generatedCreateStub
* Function callback which must accept two arguments ($hostname, $opts)
* Function callback which must accept two arguments ($hostname, $opts, $channel)

This comment was marked as spam.

$credentialsLoader = $opts['credentialsLoader'];
} else {
$credentialsLoader = $this->getADCCredentials($scopes);
if (empty($args['credentialsLoader'])) {

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants