Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix call to deprecated circles api #35030

Closed
wants to merge 1 commit into from

Conversation

ArtificialOwl
Copy link
Member

the current API to getMember() is deactivated and throws Exception by default.
A patch is in progress in Circles to return something if it exists, and throw exception if not.

@szaimen szaimen added this to the Nextcloud 26 milestone Nov 8, 2022
@szaimen szaimen added bug 3. to review Waiting for reviews labels Nov 8, 2022
@szaimen szaimen requested a review from come-nc November 8, 2022 16:46
@szaimen
Copy link
Contributor

szaimen commented Nov 8, 2022

/backport to stable25

@szaimen
Copy link
Contributor

szaimen commented Nov 8, 2022

/backport to stable24

@szaimen
Copy link
Contributor

szaimen commented Nov 8, 2022

/backport to stable23

@szaimen szaimen requested review from a team, blizzz and juliusknorr and removed request for a team November 9, 2022 18:19
@szaimen szaimen requested review from juliusknorr and mejo- November 10, 2022 10:14
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@ArtificialOwl ArtificialOwl force-pushed the fix/noid/deprecated-circles-api branch from 8298f50 to 1d09083 Compare November 23, 2022 17:23
@ArtificialOwl
Copy link
Member Author

rebased

}
// checking if user is within said circle
// deprecated API, needs to be edited when ICirclesManager is implemented
\OCA\Circles\Api\v1\Circles::getMember($sharedWith, $userId, 1);

Check notice

Code scanning / Psalm

UndefinedClass

Class, interface or enum named OCA\Circles\Api\v1\Circles does not exist
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a stub for that in build/stubs and psalm.xml ? :)

@blizzz blizzz mentioned this pull request Feb 1, 2023
@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
@blizzz blizzz mentioned this pull request Mar 7, 2023
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 27 Mar 9, 2023
return false;
} catch (QueryException $e) {
} catch (\Exception $e) {
\OC::$server->getLogger()->logException($e);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
\OC::$server->getLogger()->logException($e);
\OC::$server->get(LoggerInterface::class)->error($e->getMessage(), ['exception' => $e, 'app' => 'files_sharing']);

Copy link
Member

Choose a reason for hiding this comment

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

better even from \OCP\Server

This was referenced May 3, 2023
@blizzz blizzz mentioned this pull request May 17, 2023
@blizzz blizzz modified the milestones: Nextcloud 27, Nextcloud 28 May 23, 2023
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
@skjnldsv
Copy link
Member

As there is no feedback since a while I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to rebase & reopen.

@skjnldsv skjnldsv closed this Feb 24, 2024
@skjnldsv skjnldsv deleted the fix/noid/deprecated-circles-api branch February 24, 2024 10:41
@skjnldsv skjnldsv removed the 3. to review Waiting for reviews label Feb 24, 2024
@skjnldsv skjnldsv removed this from the Nextcloud 29 milestone Feb 24, 2024
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.

7 participants