Skip to content

refactor: map sharing instances to ints, and add instance to indices - #65512

Open
icewind1991 wants to merge 1 commit into
masterfrom
unified-sharing-indices
Open

icewind1991 wants to merge 1 commit into
masterfrom
unified-sharing-indices

Conversation

@icewind1991

@icewind1991 icewind1991 commented Oct 14, 2026 •

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

  • map instances to ints to optimize db usage, since there are probably only a small number of unique instances anyway
  • add index for owner to share table
  • add instance to unique recipient index

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 Oct 14, 2026
@icewind1991
icewind1991 requested review from a team and provokateurin as code owners October 14, 2026 19:09
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Oct 14, 2026
@icewind1991
icewind1991 requested review from Altahrim, salmart-dev and sorbaugh and removed request for a team October 14, 2026 19:09
@icewind1991

Copy link
Copy Markdown
Member Author

/backport to stable35

@icewind1991 icewind1991 mentioned this pull request Oct 14, 2026
2 of 10 tasks
@icewind1991
icewind1991 force-pushed the unified-sharing-indices branch 4 times, most recently from 3b624cf to 359f94c Compare October 14, 2026 19:51

@provokateurin provokateurin left a comment

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.

LGTM

Comment thread apps/sharing/lib/Migration/Version2000Date20261014182648.php Outdated
Comment thread lib/private/Sharing/InstanceMapper.php Outdated
Signed-off-by: Robin Appelman <robin@icewind.nl>
/**
* @return non-empty-string|null
*/
public function getInstanceUrl(mixed $id): ?string {

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.

Suggested change
public function getInstanceUrl(mixed $id): ?string {
public function getInstanceUrl(?int $id): ?string {

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants