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

Dispatch event postUnshareFromSelf when the recipient of a share unshares it #5797

Merged
merged 1 commit into from
Jul 21, 2017

Conversation

paulijar
Copy link
Contributor

In the old Share library, there used to be signal post_unshareFromSelf emitted when the recipient of a share unshares it. In the Share 2.0 library, this signal is missing, and hence it is impossible for applications to know if file has become unavailable as a result of "unshare from self".

This PR adds dispatching of event OCP\Share::postUnshareFromSelf, and mapping from it to the legacy hook signal post_unshareFromSelf.

This is a port from owncloud/core#28401.

@schiessle
Copy link
Member

looks great, can you please sign the commit?

git commit --amend -s
git push origin share20-postUnshareFromSelf --force

Thanks!

- This kind of hook signal used to be emitted in the old Share library but it was missing from Share 2.0

Signed-off-by: Pauli Järvinen <pauli.jarvinen@gmail.com>
@paulijar paulijar force-pushed the share20-postUnshareFromSelf branch from 238906c to 7c4a15f Compare July 20, 2017 11:46
@codecov
Copy link

codecov bot commented Jul 20, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@4826fd7). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #5797   +/-   ##
=========================================
  Coverage          ?   53.87%           
  Complexity        ?    22762           
=========================================
  Files             ?     1405           
  Lines             ?    86723           
  Branches          ?     1328           
=========================================
  Hits              ?    46726           
  Misses            ?    39997           
  Partials          ?        0
Impacted Files Coverage Δ Complexity Δ
lib/private/Share20/Manager.php 94.2% <ø> (ø) 222 <0> (?)
lib/private/Share20/LegacyHooks.php 100% <100%> (ø) 10 <1> (?)

@paulijar
Copy link
Contributor Author

@schiessle Right, I forgot that. Now it's signed.

@schiessle schiessle added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 20, 2017
@MorrisJobke MorrisJobke merged commit b1954be into nextcloud:master Jul 21, 2017
@paulijar paulijar deleted the share20-postUnshareFromSelf branch July 24, 2017 10:07
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 feature: sharing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants