Port files trashbin events to IEventDispatcher/IEventListener#32018
Port files trashbin events to IEventDispatcher/IEventListener#32018
Conversation
9af5d5f to
7079039
Compare
artonge
left a comment
There was a problem hiding this comment.
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
| } | ||
|
|
||
| public function handle(Event $event): void { | ||
| if ($event instanceof BeforeNodeDeletedEvent) { |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType
…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