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

[firestore-send-email] Only works on (default) database #2123

Open
BOXNYC opened this issue Jun 18, 2024 · 6 comments
Open

[firestore-send-email] Only works on (default) database #2123

BOXNYC opened this issue Jun 18, 2024 · 6 comments
Labels
extension: firestore-send-email Related to firestore-send-email extension type: feature request New feature or request

Comments

@BOXNYC
Copy link

BOXNYC commented Jun 18, 2024

I have multiple databases, “(default)” and “development”. I have firestore-send-email extension installed from the Extentions tab and another one installed from after I select the “development” database.

They are configured identically but it only sends an email when I add a document to the “(default)” database ‘mail’ collection.

When I look at the processQueue Cloud Function the extension creates, it has an Environment Variable DATABASE_INSTANCE that is empty. When I try to set it to "development" through the Firebase Console, I get an error "Users can't set environment variables, only the system can." (not verbatim)

@BOXNYC BOXNYC added the type: bug Something isn't working label Jun 18, 2024
@cabljac
Copy link
Contributor

cabljac commented Jul 2, 2024

Hi there, yes extensions only support events on the (default) firestore instance currently. This is blocked as v2 cloud functions are not fully supported in extensions. I will relabel this as a feature request for now.

@cabljac cabljac added type: feature request New feature or request blocked Blocked by an outstanding issue or PR and removed type: bug Something isn't working labels Jul 2, 2024
@BOXNYC BOXNYC changed the title 🐛 [firestore-send-email] Only works on (default) database [firestore-send-email] Only works on (default) database Jul 2, 2024
@pr-Mais pr-Mais added the extension: firestore-send-email Related to firestore-send-email extension label Jul 18, 2024
@cabljac
Copy link
Contributor

cabljac commented Mar 17, 2025

Good news, after investigating and escalating with the team, v2 firestore triggers ARE now supported on extensions. I will remove the blocked label and prioritise accordingly

@cabljac cabljac removed the blocked Blocked by an outstanding issue or PR label Mar 17, 2025
@BOXNYC
Copy link
Author

BOXNYC commented Mar 17, 2025

Great news! Thanks for the update!

@BOXNYC BOXNYC closed this as completed Mar 17, 2025
@hussainhabib2
Copy link

This feature is really needed, any update on this?

@mattanimation
Copy link

Still an issue from what I can tell, I also would like to be able to specify which database for the trigger to listen to besides (default). Is there a plan to implement such a feature still?

@cabljac cabljac reopened this Apr 2, 2025
@cabljac
Copy link
Contributor

cabljac commented Apr 2, 2025

Hi there, we have a PR in the works which should add v2 support and non-default database support here: #2359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension: firestore-send-email Related to firestore-send-email extension type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants