-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
adding a ShareDeletedEvent #24610
adding a ShareDeletedEvent #24610
Conversation
lib/private/Share20/Manager.php
Outdated
@@ -1167,6 +1167,8 @@ public function deleteShare(IShare $share) { | |||
$provider = $this->factory->getProviderForType($share->getShareType()); | |||
$provider->delete($share); | |||
|
|||
$this->dispatcher->dispatchTyped(new Share\Events\ShareDeletedEvent($share, $deletedShares)); |
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.
Mmm I'm wonering if we should not just make the event simpler. And just have the share.
And then also emit an event for all children that get deleted.
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.
Cahnged that
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
b986ece
to
bb411c7
Compare
lib/private/Share20/Manager.php
Outdated
@@ -1167,6 +1167,8 @@ public function deleteShare(IShare $share) { | |||
$provider = $this->factory->getProviderForType($share->getShareType()); | |||
$provider->delete($share); | |||
|
|||
$this->dispatcher->dispatchTyped(new Share\Events\ShareDeletedEvent($share, $deletedShares)); |
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.
Cahnged that
seems it was missing since the Great Migration. should includes parent IShare, and children