Skip to content

Persist space memberships in share manager#2760

Merged
rhafer merged 12 commits into
mainfrom
feature/guest-links
May 13, 2026
Merged

Persist space memberships in share manager#2760
rhafer merged 12 commits into
mainfrom
feature/guest-links

Conversation

@rhafer
Copy link
Copy Markdown
Member

@rhafer rhafer commented May 13, 2026

This merges the current state of the feature/guest-links branch into main.

It fundamentally changes how we persist space-memberships. We basically treat them exactly like shares now and persist them in the share manager. (This was introduced with: opencloud-eu/reva#593 and opencloud-eu/reva#604)

This PR also introduces as migration to import all existing space-memberships into the share-manager. (Introduced in: opencloud-eu/reva#617). The migration is automatically executed at the start of the sharing service. While the migration is running the cloud can be accessed normally, with the exception of write operations to the share manager (those are e.g. triggered when create, updating or deleting shares, or when creating a new space or updating, adding or deleting members for a space. The space manager provides a progress log for the migration at "INFO" level. Even more verbose information is available at the "DEBUG" level. The migration is idempotent (i.e. when it is interrupted the migration re-runs at the next startup).

rhafer and others added 12 commits April 23, 2026 17:07
This gets us rid of quite a bit of special casing for space permission.
Also provides us with "real" permission IDs instead of those faked
"u:<userid>" ones.
The `id` property of the `permissions` on a space root does not
longer have that special `u:<userid>` format any. It now has the
same format as the permission id on "normal" driveItems.
…ervice

In order to be able to run migrations, the "sharing" service now needs
the "service_account_id" and -"_secret" to be configured.

This is a "breaking/backwards incompatible" change.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · -3 duplication

Metric Results
Complexity 0
Duplication -3

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@rhafer rhafer requested review from aduffeck, butonic and micbar May 13, 2026 13:04
@rhafer rhafer merged commit 48808b3 into main May 13, 2026
63 checks passed
@rhafer rhafer deleted the feature/guest-links branch May 13, 2026 14:53
@openclouders openclouders mentioned this pull request May 13, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants