Skip to content

Sharing changes in preperation for legacy sync. - #67021

Open
icewind1991 wants to merge 17 commits into
masterfrom
unified-sharing-legacy-sync-extracted
Open

icewind1991 wants to merge 17 commits into
masterfrom
unified-sharing-legacy-sync-extracted

Conversation

@icewind1991

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

A collection of the "smaller" changes from #65972 that aren't directly related to the legacy sync.

Splitting this off hopefully makes things a bit easier to merge

Checklist

AI (if applicable)

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

@icewind1991 icewind1991 added this to the Nextcloud 36 milestone Nov 25, 2026
@icewind1991
icewind1991 requested review from a team and provokateurin as code owners November 25, 2026 18:04
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Nov 25, 2026
@icewind1991
icewind1991 requested review from Altahrim, GhassenKefi, come-nc and salmart-dev and removed request for a team November 25, 2026 18:04
@come-nc

come-nc commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

What is the rationale for refactor(files_sharing): Set expiration date time to 23:59:59 only in the controller ? Why not always set it to 23:59:59 in the manager like before?

Comment on lines +638 to +640
$event = new ShareCreatedEvent($share);
$this->dispatchEvent($event, 'share created');
$share = $event->getShare();

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.

This looks a bit weird. Is it not possible to modify the share object directly from listeners 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.

Only if the listener doesn't replace the share object

@come-nc

come-nc commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

The rest looks good. All the @since should be updated to 36 though.

Signed-off-by: provokateurin <kate@provokateurin.de>
… the controller

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
@icewind1991

Copy link
Copy Markdown
Member Author

What is the rationale for refactor(files_sharing): Set expiration date time to 23:59:59 only in the controller ? Why not always set it to 23:59:59 in the manager like before?

To prevent modifying the share when loading it. Currently doing save+load cycle gives you a share with a different expiration date than the one you saved.

icewind1991 and others added 7 commits November 26, 2026 18:16
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
…ead of load

Signed-off-by: provokateurin <kate@provokateurin.de>
… manager instead of the backend

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
…d in the provider

Signed-off-by: provokateurin <kate@provokateurin.de>
…ilable

Signed-off-by: provokateurin <kate@provokateurin.de>
@icewind1991
icewind1991 force-pushed the unified-sharing-legacy-sync-extracted branch from 78d81c7 to 4b58c4a Compare November 26, 2026 17:16
@icewind1991

Copy link
Copy Markdown
Member Author

updated @since

This branch has not been deployed

No deployments
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.

3 participants