Repository navigation
Move hook and delete children logic to share manager - #20543
Conversation
|
@nickvergessen mmm Let me look into a bit more detail... it should I think... |
|
looks good - but I love to let @schiesbn have the last call on this |
|
Aaah seems I did not interpert the hook stuff correctly... let me try to fix that. |
5aec723 to
3fe023b
Compare
|
Ok I think I fixed it. It should now have the same behaviour as previously but even more info is returned so #9761 should be resolved. |
3fe023b to
92cb419
Compare
|
I added a test that is similar to the testcase from #9761. @nickvergessen please verify. |
92cb419 to
596438d
Compare
|
Can confirm that it now fixes #9761 |
596438d to
1e6eab0
Compare
|
All tests happy! Even OCI. |
|
looks good 👍 |
|
@DeepDiver1975 @nickvergessen can I interpet your combined responses as a 👍 😉 ? |
There was a problem hiding this comment.
file ids may not be integer in the future iirc?
There was a problem hiding this comment.
true, but for now that is the function signature
b360cfd to
e9fee89
Compare
|
Rebased, squashed and fixed @nickvergessen comments. |
|
@nickvergessen ping ;) |
e9fee89 to
de4c91a
Compare
There was a problem hiding this comment.
what happens with groups, if they have the same name as a user etc.
There was a problem hiding this comment.
Ah yes. That part of the code is removed in a next PR already. Since all the currentUser stuff needs to go so we can also call the share manager from the cli stuff.
So not related to this PR.
There was a problem hiding this comment.
Okay, seems like group shares can not be returned by this method, because getSharedWith is IGroup and currentUser is IUser.
but not changed here, so please fix in another PR
|
👍 |
de4c91a to
1360e22
Compare
To make sure hooks are always fired and child entries are always cleaned. This logic is moved to the share manager. * Updated unit tests
|
@DeepDiver1975 please merge. |
Move hook and delete children logic to share manager
More work for #19331
Moved logic from the shareprovider to the sharemanager as discussed. This ensures hat the providers only have to take care of basic sharing stuff. And the more "complex" logic is all in the manager. That way we know that hooks are always fired etc.
Updated tests as well of course.
CC: @schiesbn @nickvergessen @PVince81 @DeepDiver1975