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

Add Firebase Version to header #414

Merged
merged 9 commits into from
Nov 2, 2018
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Oct 23, 2018

This PR allows the Admin SDK to pass its version to our SDK. We then add it as a header value to the existing x-goog-api-client header.

This looks like this:

x-goog-api-client: gl-node/v8.11.3 grpc/1.15.1 gax/0.20.0 gapic/0.18.0 gccl/0.18.0 fire/6.1.0

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 23, 2018
};

if (settings && settings.firebaseVersion) {
libraryHeader.libVersion += ' fire/' + settings.firebaseVersion;

This comment was marked as spam.

This comment was marked as spam.

@@ -279,11 +279,6 @@ export class Firestore {
* use `Timestamp` now and opt-in to this new behavior as soon as you can.
*/
constructor(settings?: Settings) {

This comment was marked as spam.

This comment was marked as spam.

@schmidt-sebastian
Copy link
Contributor Author

Ping :)

@alexander-fenster
Copy link
Contributor

It looks the code will add fire/x.x.x, not firebase/x.x.x as the description states. LGTM if that's expected. If you can create an issue for googleapis/gapic-generator to have better support for multiple library-version pairs, it would be great.

@alexander-fenster alexander-fenster self-requested a review November 2, 2018 19:53
@schmidt-sebastian
Copy link
Contributor Author

It looks the code will add fire/x.x.x, not firebase/x.x.x as the description states. LGTM if that's expected. If you can create an issue for googleapis/gapic-generator to have better support for multiple library-version pairs, it would be great.

We updated the code to use fire/. I changed the description to match this.

Issue: https://github.com/googleapis/gapic-generator/issues/2400

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.

5 participants