Skip to content

Move hook and delete children logic to share manager - #20543

Merged
DeepDiver1975 merged 1 commit into
masterfrom
share2.0_fix_hooks
Nov 23, 2015
Merged

DeepDiver1975 merged 1 commit into
masterfrom
share2.0_fix_hooks

Conversation

@rullzer

@rullzer rullzer commented Nov 16, 2015

Copy link
Copy Markdown
Contributor

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

@rullzer rullzer added this to the 9.0-current milestone Nov 16, 2015
@nickvergessen

Copy link
Copy Markdown
Contributor

@rullzer does this resolve #9761 ?

@rullzer

rullzer commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

@nickvergessen mmm Let me look into a bit more detail... it should I think...

@rullzer rullzer mentioned this pull request Nov 17, 2015
35 of 43 tasks
@DeepDiver1975

Copy link
Copy Markdown
Contributor

looks good - but I love to let @schiesbn have the last call on this

@rullzer

rullzer commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

Aaah seems I did not interpert the hook stuff correctly... let me try to fix that.

@rullzer

rullzer commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

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.

@rullzer

rullzer commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

I added a test that is similar to the testcase from #9761. @nickvergessen please verify.

@nickvergessen

Copy link
Copy Markdown
Contributor

Can confirm that it now fixes #9761

@rullzer

rullzer commented Nov 18, 2015

Copy link
Copy Markdown
Contributor Author

All tests happy! Even OCI.

@schiessle

Copy link
Copy Markdown
Contributor

looks good 👍

@rullzer

rullzer commented Nov 19, 2015

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 @nickvergessen can I interpet your combined responses as a 👍 😉 ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

file ids may not be integer in the future iirc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

true, but for now that is the function signature

@rullzer
rullzer force-pushed the share2.0_fix_hooks branch 3 times, most recently from b360cfd to e9fee89 Compare November 19, 2015 09:40
@rullzer

rullzer commented Nov 19, 2015

Copy link
Copy Markdown
Contributor Author

Rebased, squashed and fixed @nickvergessen comments.

This was referenced Nov 19, 2015
@rullzer

rullzer commented Nov 20, 2015

Copy link
Copy Markdown
Contributor Author

@nickvergessen ping ;)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what happens with groups, if they have the same name as a user etc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@nickvergessen

Copy link
Copy Markdown
Contributor

👍

To make sure hooks are always fired and child entries are always
cleaned. This logic is moved to the share manager.

* Updated unit tests
@rullzer

rullzer commented Nov 23, 2015

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 please merge.

DeepDiver1975 added a commit that referenced this pull request Nov 23, 2015
Move hook and delete children logic to share manager
@DeepDiver1975
DeepDiver1975 merged commit 240cc1c into master Nov 23, 2015
@DeepDiver1975
DeepDiver1975 deleted the share2.0_fix_hooks branch November 23, 2015 12:28
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants