firebase-functions
firebase-functions copied to clipboard
Cloud Firestore triggers for v2 functions
Please add Cloud Firestore triggers for v2 functions in the SDK, this is really missing.
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Currently available Cloud Functions triggers Cloud Functions v2 supports the following Firebase background triggers:
Firebase Realtime Database Cloud Storage Firebase Alerts Pub/Sub Callables Cloud Tasks HTTP Cloud Functions v2 does not currently support the following triggers:
Cloud Firestore Firebase Authentication Google Analytics Scheduled functions Firebase Remote Config Firebase Test Lab
Please add firebase auth as well.
V2 functions support firebase identity, but not a regular auth.
@taeold Is there any timeline on this feature?
Need update guys. Taking too long for such a critical feature.
up :)
I tried to implement a deployer for the Java firebase admin sdk and the google cloud functions v2 sdks (firebase is just a thin wrapper). And my god, functions v2 is so overcomplicated for no reason. You need to use eventarc to link (probably pubsub) events to a cloud function, but there arent any events in eventarc that support firestore. The only way to do it is to turn on audit logging for firestore, then make a pubsub listener for the writes to the audit log then somehow connect that with eventarc.
It's so stupid, I have no idea why they released v2 functions before they had everything working, but my point here is that firebase cant really do anything until gcp fixes v2 functions and actually adds the event sources they claim to now have. Again, firebase is a thin wrapper around google services. And after trying to implement it, I've found that its actually not possible yet because of gcp v2 functions.
Should have been resolved via #1358 on v4.3.0 release
@patrikjuvonen is correct, Firestore Triggers have been included in the v4.3.0 release! I'll close this issue out now, thanks everyone