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

feat: Move v2 translate client #2423

Merged
merged 5 commits into from
Oct 28, 2019
Merged

feat: Move v2 translate client #2423

merged 5 commits into from
Oct 28, 2019

Conversation

jdpedrie
Copy link
Contributor

No description provided.

@jdpedrie jdpedrie added the api: translation Issues related to the Cloud Translation API. label Oct 24, 2019
@jdpedrie jdpedrie requested a review from dwsupplee as a code owner October 24, 2019 18:00
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 24, 2019
Copy link
Contributor

@dwsupplee dwsupplee left a comment

Choose a reason for hiding this comment

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

Is it feasible to leave the service definition in src/Connection? Also, do you think moving the contract would be breaking? Wondering if we can alias that too.

@@ -30,7 +30,7 @@
use Google\Cloud\Speech\SpeechClient;
use Google\Cloud\Storage\StorageClient;
use Google\Cloud\Trace\TraceClient;
use Google\Cloud\Translate\TranslateClient;
use Google\Cloud\Translate\V2\TranslateClient;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to leave this as use Google\Cloud\Translate\TranslateClient? It is a bit of a gray area, since the classes are identical in practice - but the returned type will vary. If anyone is doing typechecks they might fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but they will get the suppressed E_USER_DEPRECATED notice. I guess you're probably right though, this should be considered breaking.

@codecov
Copy link

codecov bot commented Oct 24, 2019

Codecov Report

Merging #2423 into master will decrease coverage by 0.07%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2423      +/-   ##
============================================
- Coverage     92.55%   92.47%   -0.08%     
+ Complexity     4504     4477      -27     
============================================
  Files           312      312              
  Lines         13496    13414      -82     
============================================
- Hits          12491    12405      -86     
- Misses         1005     1009       +4
Impacted Files Coverage Δ Complexity Δ
Translate/src/Connection/Rest.php 0% <0%> (-100%) 0 <0> (-4)
Translate/src/Connection/ConnectionInterface.php 0% <0%> (ø) 0 <0> (?)

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 0b90be0...7e61b3a. Read the comment docs.

@dwsupplee dwsupplee merged commit 4e9182d into googleapis:master Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: translation Issues related to the Cloud Translation API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants