Skip to content

feat(teamspace): resolve teams for files inside a team folder - #5035

Draft
pringelmann wants to merge 1 commit into
masterfrom
feat/team-folder-teams-reverse-lookup
Draft

pringelmann wants to merge 1 commit into
masterfrom
feat/team-folder-teams-reverse-lookup

Conversation

@pringelmann

@pringelmann pringelmann commented Aug 20, 2026 •

Copy link
Copy Markdown

Open a team folder in Files and the sidebar shows no team. Same for files inside it. The sidebar asks the files provider, which finds teams from share rows, and a team folder arrives as a mount so there is never a row.

TeamSpaceProvider now implements ITeamFileResolver from nextcloud/server#63444. Given a file id it looks up the mount the file lives in and the group folder behind it, then returns that folder's teams. getTeamsForResource, which returned nothing before, now answers for a folder id, which is what the Teams UI sends.

Tested at the mount root, two levels deep, on a team-shared folder, and on an unrelated file:

image

Depends on nextcloud/server#63444. CI fails until that merges and nextcloud/ocp syncs.

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann
pringelmann force-pushed the feat/team-folder-teams-reverse-lookup branch from 7b378cf to 3fa9325 Compare August 21, 2026 09:29
@pringelmann
pringelmann marked this pull request as ready for review August 21, 2026 16:00
@pringelmann
pringelmann marked this pull request as draft August 21, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant