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

fix: Add acceptShare as an interface #46099

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jun 25, 2024

Summary

It was commented out because at that time no other share provider supported the acceptShare method. Today it is the same no other provider supports it, but we should make it discoverable by adding it to the public API as an additional interface.

5 years after no other provider supports it, so maybe an additional interface would be better like done here?
Ref: #16828 (comment)

Checklist

It was commented out because at that time no other share provider
supported the `acceptShare` method. Today it is the same no other provider
supports it, but we should make it discoverable by adding it to the public API
as an additional interface.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added the 3. to review Waiting for reviews label Jun 25, 2024
* @param IShare $share
* @param string $recipient
* @return IShare The share object
* @since 17.0.0
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* @since 17.0.0
* @since 30.0.0

*
* @since 30.0.0
*/
interface IShareProviderSupportsAccept {
Copy link
Member

Choose a reason for hiding this comment

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

Could also:

Suggested change
interface IShareProviderSupportsAccept {
interface IShareProviderSupportsAccept extends IShareProvider {

but that might only work atm while it's still linear?

@@ -1018,6 +1019,7 @@ public function acceptShare(IShare $share, string $recipientId): IShare {
// TODO FIX ME
Copy link
Member

Choose a reason for hiding this comment

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

check for the new interface instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants