-
Notifications
You must be signed in to change notification settings - Fork 398
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(firestore-send-email): migrate to v2 cloud function #2359
base: next
Are you sure you want to change the base?
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.
Pull Request Overview
This PR migrates the firestore-send-email extension to use the v2 Cloud Function trigger and supports non-default Firestore databases. The changes include updates to type definitions, modifications in index.ts to adopt Firestore v2 APIs, and corresponding updates in configuration, documentation, and changelog.
Reviewed Changes
Copilot reviewed 7 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
functions/src/types.ts | Added new config fields for Firestore instance identification and region. |
functions/src/index.ts | Modified Firestore API usages and trigger setup to support v2 functions and types. |
functions/src/config.ts | Added new configuration properties for database and databaseRegion. |
extension.yaml | Updated function type to firebaseextensions.v1beta.v2function, version bump, and config. |
README.md | Updated documentation to reflect new Firestore instance configuration parameters. |
POSTINSTALL.md | Updated instructions for accessing non-default Firestore databases post-installation. |
CHANGELOG.md | Documented version bump and migration to v2 Firestore trigger. |
Files not reviewed (3)
- project/.firebaserc: Language not supported
- project/.gitignore: Language not supported
- project/firebase.json: Language not supported
2e69f51
to
ca73458
Compare
99bc96a
to
a719342
Compare
a719342
to
b75d88a
Compare
fix: add defaults to config.ts to make tests run
Resolves #2002
need to test