-
Notifications
You must be signed in to change notification settings - Fork 373
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(fis): Adding the admin.installations() API for deleting Firebase installation IDs #1187
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.
LGTM. Left one comment.
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 Hiranya! Some nits and one link to update.
Thanks @egilmorez. I've responded to your comments. PTAL. |
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.
LGTM, thanks Hiranya!
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.
Here's a couple of things to look at Hiranya. Thanks!
section: | ||
- title: "Installations" | ||
path: /docs/reference/admin/node/admin.installations.Installations-1 | ||
|
||
- title: "admin.instanceId" |
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.
It's possible to add a "status: deprecated" flag here to create this kind of effect:
https://firebase.google.com/docs/reference/android/com/google/firebase/iid/package-summary?hl=en
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.
What does that look like in the yaml? Can you point me to an example?
src/installations/index.ts
Outdated
*``` | ||
* | ||
* @param app Optional app whose `Installations` service to | ||
* return. If not provided, the default `Installations` service will be |
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.
"Optional app whose Installations
service to
- return." makes sense but isn't 100% grammatical.
"Optional app for which to return the Installations
service" is valid but not great.
"Optional app whose Installations
service should be
- returned." sounds better, but "should" seems weak.
I'll poll the tech writers and see who has a solution :)
admin.installations()
API.admin.instanceId()
API. The implementation of this API now just invokes the installations API under the hood.admin.instanceId()
retains backward compatibility by converting theFirebaseInstallationsError
raised by the new implementation to the oldFirebaseInstanceIdError
type. Error codes are the same, but the error message may defer.go/firebase-admin-fis
RELEASE NOTE: Added a new
admin.installations()
API to replace the existingadmin.instanceId()
API. Developers are advised to migrate to the new API for deleting Firebase instance IDs and installation IDs.