-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Make trigger context accessible in all triggers #7058
Comments
Thanks for suggesting. It surely makes sense to further extend context accessibility. Would you be willing to open a PR? It should be fairly straightforward as the existing context implementation already provides some guidance. |
Yes I can open a PR to work on it but I'm not an expert parse user so I don't know if I have the capacities to do that. Do you have any documentation for beginner to learn how to work on the project? |
Sure, the contribution guide explains how to make changes to Parse Server and contribute these changes as pull request. Feel free to reach out if you need any guidance. |
@mtrezza I tried to understand what I have to do to implement that and to be honest I'm totally lost. Can someone else work on it because we are going to wait a year if I do? x) |
@AurelienVasseur i see that you have forker parse-server. To install the project
You can also in a I can suggest you to explore |
@Moumouls thanks a lot for your help :) |
No problem @AurelienVasseur, just give it a try and advance at your own speed :) |
@AurelienVasseur I have merged a PR for context for afterFind, however I believe context still needs to be added for: -LiveQuery triggers (context on |
@dblythy Thanks a lot 😃 I was a little bit lost I didn't already find the time to work on it but I will try as fast as possible |
Is your feature request related to a problem? Please describe.
Sometime we need to pass some context to adapt the behavior / action of a trigger.
Currently context is only available on these triggers:
beforeSave
-afterSave
-beforeDelete
-afterDelete
-beforeFind
See #6459 #6626 #6666
Describe the solution you'd like
It should be possible to pass arguments from all 'actions' (e.g. find, login, liveQuery, etc...) to the triggers.
As I said the logic is already implemented for some of them and the concept seems to have been accepted.
I make sense to be able to use context in all triggers.
I hope this feature will help a lot of devs ;)
The text was updated successfully, but these errors were encountered: