-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Migrate OC_Group post_removeFromGroup hook to actual event object #21738
Migrate OC_Group post_removeFromGroup hook to actual event object #21738
Conversation
|
So #22015 touched also this code. Let me rebase and resolve the code. Should make everything more clean and use then the proper events. |
75def24
to
38cb619
Compare
Ref #14552 This adds a BeforeUserRemovedEvent to the LDAP backend because it was missing. It's not really before, but we don't have the before state. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
… cases Signed-off-by: Morris Jobke <hey@morrisjobke.de>
38cb619
to
084f506
Compare
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.
🦈
Fine by me, although I really loved the before event. Now I see that it can't be triggered all the time, but for the things where it works, its nicer.
I am not sure why you deprecate BeforeUserRemovedEvent? |
Was discussed in #21738 (comment) - as there is no way to guarantee it in all cases it's better to use only the one that reliably fires. And if there is really the need for an before event we can evaluate again on this and check out what is needed there and how to accomplish this. |
make sense. let's then add info into the PHP doc so that any developer thinking about using it knows what it means, instead of being left puzzled. |
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.
apart of the suggestion to provide brief info on the deprecation into doc block
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Added. |
Ref #14552
This adds a BeforeUserRemovedEvent to the LDAP backend because it was missing. It's not really before, but we don't have the before state.Problem with this code:The setup fails with this exception and I don't really know why:logs