-
-
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
Port files trashbin events to IEventDispatcher/IEventListener #32018
Conversation
9af5d5f
to
7079039
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.
Still a bunch of lint errors/warnings :)
cba371e
to
ccad4d3
Compare
ccad4d3
to
0766816
Compare
As there is no feedback since a while I will close this ticket. |
2ceeac1
to
fa2936c
Compare
ad3e703
to
8a6761a
Compare
public function handle(Event $event): void { | ||
if ($event instanceof NodeWrittenEvent) { | ||
// Resize trash | ||
if (!empty($this->userId)) { |
Check notice
Code scanning / Psalm
RiskyTruthyFalsyComparison Note
@@ -1170,4 +1172,10 @@ | |||
return new NonExistingFile($rootFolder, $view, $fullPath); | |||
} | |||
} | |||
|
|||
public function handle(Event $event): void { | |||
if ($event instanceof BeforeNodeDeletedEvent) { |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType Note
…Listener oc_hooks is deprecated and will at some point be removed Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Thomas Citharel <tcit@tcit.fr> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Hooks are cleared in test bootstrap so switching to events activates them in tests. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
98986b7
to
af0b8fb
Compare
… unlink Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
The 4 ViewTest failures came from the fact that the trashbin wrapper is now registered and intercepts the rmdir and unlink calls to applies trashbin logic instead of actually deleting stuff. |
oc_hooks is deprecated and will at some point be removed