Skip to content

Add Unified Sharing#62241

Merged
provokateurin merged 5 commits into
masterfrom
unified-sharing
Jul 20, 2026
Merged

Add Unified Sharing#62241
provokateurin merged 5 commits into
masterfrom
unified-sharing

Conversation

@provokateurin

Copy link
Copy Markdown
Member

Summary

#51803

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@provokateurin provokateurin added this to the Nextcloud 35 milestone Jul 16, 2026
@provokateurin
provokateurin requested a review from a team as a code owner July 16, 2026 12:39
@provokateurin
provokateurin requested review from Altahrim and come-nc and removed request for a team July 16, 2026 12:39
Comment thread apps/files/lib/AppInfo/Application.php
Comment thread apps/files/lib/Sharing/Permission/NodeCreateSharePermissionType.php
Comment thread apps/files/lib/Sharing/Permission/NodeDeleteSharePermissionType.php
Comment thread apps/sharing/tests/Command/CommandTest.php
Comment thread lib/public/Sharing/ShareUser.php
* @since 35.0.0
*/
#[Consumable(since: '35.0.0')]
final readonly class ShareIconSVG {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might make sense to move the icon classes outside the share namespace, so they could be used for non-sharing dynamic icon registration in the future.

/** @var array<int, array<class-string<IShareRecipientType>, bool>> $shareRecipientTypeClasses */
$shareRecipientTypeClasses = [];
foreach ($chunks as $chunk) {
$qb = $this->connection->getQueryBuilder();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

in most cases, we have already done a query on recipients above when finding share ids, probably worth fetching this data then instead.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You are right, however implementing this is not very nice, because it duplicates the logic for parsing the recipient rows and also causes rows from sharing_share to be returned multiple times.
So I'm not sure if this is worth fixing, but we can keep it in mind for later if we notice that there is a performance issue that could be solved by this change.

@provokateurin

Copy link
Copy Markdown
Member Author

@come-nc @icewind1991 I will address the remaining feedback in separate PRs.

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin
provokateurin force-pushed the unified-sharing branch 2 times, most recently from 7aa592a to c682e1e Compare July 20, 2026 08:27
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin
provokateurin merged commit 0bf8efd into master Jul 20, 2026
226 of 228 checks passed
@provokateurin
provokateurin deleted the unified-sharing branch July 20, 2026 09:55
@provokateurin provokateurin added the pending documentation This pull request needs an associated documentation update label Jul 20, 2026
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 enhancement pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants