-
Notifications
You must be signed in to change notification settings - Fork 396
Fcm GAPIC type conversion #1354
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
Fcm GAPIC type conversion #1354
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good. Few minor changes suggested. Also let's work on getting the unit tests to pass.
Also sync up/rebase with the base branch so the gulpfile changes are included in the revision history. Without it we cannot run integration tests on this branch directly. I was able to run integration tests by manually merging the gulpfile changes to this branch on my local machine:
Nice work 👍 |
…/firebase-admin-node into maceo-fcm-gapic-type-conversion
Converts returned GAPIC errors to `FirebaseError`s
Note: currently commented out majority of `send` error test cases
instead of creating a new service client each `send()` call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good. Please address the open comments from this and past reviews, and we should be good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes and for the responses to earlier questions. Looks pretty good. I only pointed out a few nits, but this is almost done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM 👍
} | ||
|
||
options.projectId = projectId; | ||
}).then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop this line safely, and it would still work.
Add private method that converts from public
messaging.Message
type to the similar but generatedIMessage
type.