- Notifications
You must be signed in to change notification settings - Fork 217
Add support for create/update/delete event types for database functions. #57
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
Conversation
| this would be amazing! |
| Thanks for the enthusiasm @piuccio and everyone else! We're still waiting on some backend changes, but hope to have this in the next SDK release. |
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.
LGTM, though we may want to merge this to a launch branch since the backend changes are still pending (there's been some testing infra issues holding up GCF right now)
spec/providers/database.spec.ts Outdated
| } as any); | ||
| }); | ||
| | ||
| it('should interpolate params until the server does it', () => { |
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.
The server already does this; we should be able to yank this code.
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.
Removed.
| @inlined I'll just leave this PR here then, and you can merge when the backend is ready. Since the other PR is in the other repo, using a launch branch will make things more complicated. |
| I meant that this could go to a launch since it needs to be held back and the other can go to master. NBD either way. The backend change has been merged into GCF so it should go live this week. |
| @laurenzlong , the I didnt want to create bug so commenting it here |
| @1hakr This is definitely a bug, thanks for reporting! |
| hey @1hakr we aren't able to reproduce this. Can you file an actual Github issue, and include repro instructions? Including exactly how you deleted the node (if it's via code, then add the client side code, if it's via CLI, include the command you used, if it's via console, then exactly what you clicked) |
| @1hakr I was unable to reproduce in the most simple case of an onDelete that does nothing but log the previous value of the data that was deleted: The correctly logs the deleted values for me. It sounds like you're seeing something different? |
| Found the culprit. I was using exists() method to check if data exists or not before doing any operation. I removed the code and it works now. I thought exists() was supposed to tell you if data exists or not. My bad. 😐 Here is the code i was using. |
Description
Add support for create/update/delete event types for database functions.
Code sample