Skip to content
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

Merged
merged 4 commits into from
Dec 23, 2020
Merged

Conversation

ArtificialOwl
Copy link
Member

seems it was missing since the Great Migration. should includes parent IShare, and children

@ArtificialOwl ArtificialOwl added this to the Nextcloud 21 milestone Dec 11, 2020
@rullzer rullzer mentioned this pull request Dec 14, 2020
59 tasks
@@ -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));
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cahnged that

@rullzer rullzer mentioned this pull request Dec 18, 2020
39 tasks
ArtificialOwl and others added 4 commits December 23, 2020 11:00
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
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>
@rullzer rullzer force-pushed the enh/adding-missing-event-on-deleted-shares branch from b986ece to bb411c7 Compare December 23, 2020 10:05
@@ -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));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cahnged that

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 23, 2020
@rullzer rullzer merged commit 6846a83 into master Dec 23, 2020
@rullzer rullzer deleted the enh/adding-missing-event-on-deleted-shares branch December 23, 2020 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants