Repository navigation
Conversation
38078ea to
d2fd2f3
Compare
114e38a to
77bba9d
Compare
| * | ||
| * @since 36.0.0 | ||
| */ | ||
| class TeamActivityScope { |
There was a problem hiding this comment.
| class TeamActivityScope { | |
| final readonly class TeamActivityScope { |
| 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'); | ||
| } | ||
| } |
There was a problem hiding this comment.
| 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'); | |
| } | |
| } |
| */ | ||
| class TeamActivityScope { | ||
| /** | ||
| * @param list<int> $objectIds |
There was a problem hiding this comment.
| * @param list<int> $objectIds | |
| * @param list<positive-int> $objectIds | |
| * @param non-empty-string $objectType |
77bba9d to
1c04c3f
Compare
…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>
1c04c3f to
cb2784c
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
…le id
Resolves:
Show activity of team in Teams app circles#2692
Relates:
Expose group folder activity scopes groupfolders#5148
Add activity and resource integration circles#3030
Add Team activity stream activity#3024
Add Deck resources to Team Activity deck#8516
Summary
Introduce
ITeamActivityResourceProvideras an optional capability forITeamResourceProviderimplementations to resolve Team resources into Activity scopes, backed by the newTeamActivityScopevalue 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
TeamFolderso filesystem-backed providers can resolve the contents of Team folders into Activity scopes.Consumers
The initial consumers are:
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)
claude-sonnet-4.5