Skip to content

Add Team Activity resource provider and TeamFolder root fi… - #65347

Open
hefftich wants to merge 1 commit into
masterfrom
feat/team-activity-resource-provider
Open

hefftich wants to merge 1 commit into
masterfrom
feat/team-activity-resource-provider

Conversation

@hefftich

@hefftich hefftich commented Oct 9, 2026 •

Copy link
Copy Markdown

…le id

Summary

Introduce ITeamActivityResourceProvider as an optional capability for ITeamResourceProvider implementations to resolve Team resources into Activity scopes, backed by the new TeamActivityScope value object.

The Activity app can use these scopes to include activity from Team-linked resources while each provider resolves only objects visible to the requesting user. Providers that do not support Activity require no changes.

Expose the filecache root ID on TeamFolder so filesystem-backed providers can resolve the contents of Team folders into Activity scopes.

Consumers

The initial consumers are:

  • Activity: resolves Team-linked resources into Activity object scopes.
  • Group folders: exposes Team folder roots as file Activity scopes.
  • Deck: exposes Team-linked boards as Deck Activity scopes.

TODO

  • ...

Checklist

AI (if applicable)

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

claude-sonnet-4.5

@hefftich hefftich self-assigned this Oct 9, 2026
@hefftich hefftich added the 2. developing Work in progress label Oct 9, 2026
@hefftich
hefftich force-pushed the feat/team-activity-resource-provider branch from 38078ea to d2fd2f3 Compare October 9, 2026 21:25
@hefftich hefftich changed the title feat(ocp): add Team Activity resource provider and TeamFolder root fi… Add Team Activity resource provider and TeamFolder root fi… Oct 9, 2026
@hefftich hefftich added this to the Nextcloud 36 milestone Oct 12, 2026
@hefftich
hefftich force-pushed the feat/team-activity-resource-provider branch 2 times, most recently from 114e38a to 77bba9d Compare October 12, 2026 11:15
@hefftich hefftich added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 12, 2026
@hefftich
hefftich marked this pull request as ready for review October 12, 2026 13:06
@hefftich
hefftich requested a review from a team as a code owner October 12, 2026 13:06
@hefftich
hefftich requested review from icewind1991, leftybournes, provokateurin and sorbaugh and removed request for a team October 12, 2026 13:06
@hefftich hefftich moved this from Backlog to In progress in 👥 Teams Oct 12, 2026
@hefftich hefftich moved this from In progress to In review in 👥 Teams Oct 12, 2026
Comment thread lib/public/Teams/TeamActivityScope.php Outdated
*
* @since 36.0.0
*/
class TeamActivityScope {

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
class TeamActivityScope {
final readonly class TeamActivityScope {

Comment thread lib/public/Teams/TeamActivityScope.php Outdated
Comment on lines +24 to +31
if ($this->objectType === '') {
throw new \InvalidArgumentException('Activity object type must not be empty');
}
foreach ($this->objectIds as $objectId) {
if (!is_int($objectId) || $objectId <= 0) {
throw new \InvalidArgumentException('Activity object IDs must be positive');
}
}

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
if ($this->objectType === '') {
throw new \InvalidArgumentException('Activity object type must not be empty');
}
foreach ($this->objectIds as $objectId) {
if (!is_int($objectId) || $objectId <= 0) {
throw new \InvalidArgumentException('Activity object IDs must be positive');
}
}

Comment thread lib/public/Teams/ITeamActivityResourceProvider.php
Comment thread lib/public/Teams/TeamActivityScope.php
Comment thread lib/public/Teams/TeamActivityScope.php Outdated
*/
class TeamActivityScope {
/**
* @param list<int> $objectIds

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
* @param list<int> $objectIds
* @param list<positive-int> $objectIds
* @param non-empty-string $objectType

@hefftich
hefftich force-pushed the feat/team-activity-resource-provider branch from 77bba9d to 1c04c3f Compare October 14, 2026 14:34
…le id

Introduce ITeamActivityResourceProvider as an optional capability for
ITeamResourceProvider implementations to resolve their Team resources
into Activity scopes, backed by the new TeamActivityScope value object.
Also expose the filecache root id on TeamFolder so Activity providers
can reference team folder contents.

Signed-off-by: Stefan Lender <Stefan.Lender@dataport.de>
Assisted-by: Copilot:gpt-6.1-sol
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hefftich
hefftich force-pushed the feat/team-activity-resource-provider branch from 1c04c3f to cb2784c Compare October 14, 2026 14:39

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 AI assisted

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

3 participants