-
Notifications
You must be signed in to change notification settings - Fork 28
Realtime Database After Event Missing values #122
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
Comments
Hello @JJ11teen. Unfortunately, I am having some trouble reproducing this issue. Are you able to reproduce this on the Firebase emulator? Could you provide some reproduction code that I may test against? |
Hey @exaby73, unfortunately I don't have time to create complete minimal reproducible code for you. Is there any other way I can help you understand the problem I am describing? If you look at the code I have pointed out in For anyone else following along I've worked around this issue in the mean time by (re)querying the current state of the DB to determine the after state. |
Thanks for the fix @exaby73! Do you know roughly when the next release is expected? |
Hey @JJ11teen. I couldn't be sure but hopefully soon :) |
Hello! 👋
There is a bug in the logic to generate the "after" state of a (realtime) database change. The bug appears to be in the below lines of code, only a shallow copy/merge is performed but a deep one is needed.
firebase-functions-python/src/firebase_functions/db_fn.py
Lines 92 to 94 in 14676e5
As an example of a failure case, I had just changed

allocation/change
fromF
toG
in the following:However I have a listener setup on the root object of the screenshot and the
event.data
object that is generated by that change was:It should be:
Let me know if you need any more info.
Thanks!
The text was updated successfully, but these errors were encountered: