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

recover deleted circles shares #35526

Closed
wants to merge 1 commit into from

Conversation

ArtificialOwl
Copy link
Member

@ArtificialOwl ArtificialOwl commented Nov 30, 2022

This is a follow-up to nextcloud/circles#1223 to list and recover deleted shares done to Circles

@szaimen szaimen added this to the Nextcloud 26 milestone Nov 30, 2022
@@ -159,6 +159,11 @@
$result = array_merge($result, $this->getDeckShareHelper()->formatShare($share));
} catch (QueryException $e) {
}
} elseif ($share->getShareType() === IShare::TYPE_CIRCLE) {
try {
$result = array_merge($result, $this->getCirclesShareHelper()->formatShare($share));

Check failure

Code scanning / Psalm

UndefinedDocblockClass

Docblock-defined class, interface or enum named OCA\Circles\ShareAPIHelper does not exist
* If the Circles application is not enabled or the helper is not available
* a QueryException is thrown instead.
*
* @return \OCA\Circles\ShareAPIHelper

Check failure

Code scanning / Psalm

UndefinedDocblockClass

Docblock-defined class, interface or enum named OCA\Circles\ShareAPIHelper does not exist
*/
private function getCirclesShareHelper() {
if (!$this->appManager->isEnabledForUser('circles')) {
throw new QueryException();

Check notice

Code scanning / Psalm

DeprecatedClass Note

OCP\AppFramework\QueryException is marked deprecated
@szaimen szaimen added the 2. developing Work in progress label Nov 30, 2022
@ArtificialOwl ArtificialOwl force-pushed the fix/noid/deleted-circles-share branch from 594baac to bdee2be Compare February 1, 2023 10:23
@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
@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
Signed-off-by: Maxence Lange <[email protected]>
@ArtificialOwl ArtificialOwl force-pushed the fix/noid/deleted-circles-share branch from bdee2be to 76db2b0 Compare November 6, 2023 17:52
@blizzz blizzz mentioned this pull request Nov 6, 2023
@ArtificialOwl ArtificialOwl added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 7, 2023
@ArtificialOwl
Copy link
Member Author

/backport to stable27

@ArtificialOwl
Copy link
Member Author

/backport to stable26

@susnux susnux requested review from juliusknorr, a team, icewind1991 and nfebe and removed request for a team November 8, 2023 14:49
@susnux susnux requested a review from sorbaugh November 8, 2023 14:49
throw new QueryException();
}

return $this->serverContainer->get('\OCA\Circles\ShareByCircleProvider');
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not \OCA\Circles\ShareAPIHelper ?

This was referenced Nov 10, 2023
@blizzz blizzz mentioned this pull request Nov 20, 2023
5 tasks
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Feb 23, 2024
This was referenced Mar 12, 2024
This was referenced Mar 20, 2024
@skjnldsv skjnldsv mentioned this pull request Mar 28, 2024
81 tasks
@skjnldsv skjnldsv modified the milestones: Nextcloud 29, Nextcloud 30 Mar 28, 2024
This was referenced Jul 30, 2024
This was referenced Aug 5, 2024
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
@skjnldsv skjnldsv closed this Aug 14, 2024
@skjnldsv skjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants