Skip to content

feat(ITeamManager): Add getTeam method#62038

Open
provokateurin wants to merge 2 commits into
masterfrom
feat/iteammanager/get-team
Open

feat(ITeamManager): Add getTeam method#62038
provokateurin wants to merge 2 commits into
masterfrom
feat/iteammanager/get-team

Conversation

@provokateurin

Copy link
Copy Markdown
Member

Needed for #51803.

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin provokateurin added this to the Nextcloud 35 milestone Jul 13, 2026
@provokateurin provokateurin requested a review from a team as a code owner July 13, 2026 07:22
@provokateurin provokateurin requested review from ArtificialOwl, icewind1991 and leftybournes and removed request for a team July 13, 2026 07:22
@provokateurin provokateurin requested a review from CarlSchwan July 13, 2026 07:22
@provokateurin provokateurin added the 3. to review Waiting for reviews label Jul 13, 2026
@provokateurin

Copy link
Copy Markdown
Member Author

Rector CI is only failing due to #62034, so it can be ignored.

}

if ($userId !== null) {
$this->circlesManager->startSession($this->circlesManager->getLocalFederatedUser($userId));

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.

other places on this class use $this->circlesManager->getFederatedUser() to start session for a user, shouldn't we use the same here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure, but those methods could potentially use a remote user, right? From my perspective the userid parameters in this class are only meant to be used with local users. But again, I'm not really sure.

@cristianscheid cristianscheid Jul 13, 2026

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.

looking at lib/CirclesManager, what getLocalFederatedUser() does is call getFederatedUser($userId, Member::TYPE_USER), so basically you are achieving the same as other places in this class who call getFederatedUser() directly

for reference:
lib/CirclesManager::getFederatedUser()
lib/CirclesManager::getLocalFederatedUser()

@cristianscheid cristianscheid 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.

looks good to me

}

if ($userId !== null) {
$this->circlesManager->startSession($this->circlesManager->getLocalFederatedUser($userId));

@cristianscheid cristianscheid Jul 13, 2026

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.

looking at lib/CirclesManager, what getLocalFederatedUser() does is call getFederatedUser($userId, Member::TYPE_USER), so basically you are achieving the same as other places in this class who call getFederatedUser() directly

for reference:
lib/CirclesManager::getFederatedUser()
lib/CirclesManager::getLocalFederatedUser()

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 enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants