firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

Cloud Firestore triggers for v2 functions

Open dahu33 opened this issue 2 years ago • 2 comments

Please add Cloud Firestore triggers for v2 functions in the SDK, this is really missing.

dahu33 avatar Aug 30 '22 09:08 dahu33

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Aug 30 '22 09:08 google-oss-bot

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

aqarchy avatar Aug 31 '22 05:08 aqarchy

Please add firebase auth as well.

V2 functions support firebase identity, but not a regular auth.

taishi55 avatar Oct 27 '22 22:10 taishi55

@taeold Is there any timeline on this feature?

n0thingness avatar Dec 30 '22 07:12 n0thingness

Need update guys. Taking too long for such a critical feature.

nicksav avatar Jan 13 '23 01:01 nicksav

up :)

rodneyrd avatar Feb 08 '23 06:02 rodneyrd

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.

cyberpwnn avatar Feb 11 '23 16:02 cyberpwnn

Should have been resolved via #1358 on v4.3.0 release

patrikjuvonen avatar Apr 18 '23 11:04 patrikjuvonen

@patrikjuvonen is correct, Firestore Triggers have been included in the v4.3.0 release! I'll close this issue out now, thanks everyone

colerogers avatar Apr 25 '23 19:04 colerogers