π΅οΈ Add sharereview support#2711
Open
AndyScherzinger wants to merge 12 commits into
Open
Conversation
a74331b to
411e1f7
Compare
569f563 to
b35b188
Compare
enjeck
reviewed
Jun 15, 2026
| foreach ($rawShares as $share) { | ||
| $formatted[] = [ | ||
| 'id' => (int)$share['id'], | ||
| 'app' => $appName, |
Contributor
There was a problem hiding this comment.
We don't need this key. The consumer (ShareService::getAppShares()) already injects the app name.
Also, not required to be specified according to https://github.com/nextcloud/sharereview#3-implement-the-source
Comment on lines
+80
to
+92
| try { | ||
| $qb = $this->db->getQueryBuilder(); | ||
| $qb->delete(self::SHARE_TABLE) | ||
| ->where($qb->expr()->eq('id', $qb->createNamedParameter((int)$shareId, IQueryBuilder::PARAM_INT))); | ||
| $deleted = $qb->executeStatement() > 0; | ||
| } catch (Exception $e) { | ||
| $this->logger->error('Tables ShareReview: failed to delete share {id}: {message}', ['id' => $shareId, 'message' => $e->getMessage()]); | ||
| return false; | ||
| } | ||
|
|
||
| if ($deleted) { | ||
| $this->deleteContextNavigation((int)$shareId); | ||
| } |
Contributor
There was a problem hiding this comment.
is it possible to use Tables' ShareService::delete() instead?
Comment on lines
+198
to
+201
| self::NODE_TYPE_TABLE => ($tableNames[$nodeId] ?? "Table $nodeId") . ' (Table)', | ||
| self::NODE_TYPE_VIEW => ($viewNames[$nodeId] ?? "View $nodeId") . ' (View)', | ||
| self::NODE_TYPE_CONTEXT => ($contextNames[$nodeId] ?? "Context $nodeId") . ' (Context)', | ||
| default => "Unknown $nodeId", |
Contributor
There was a problem hiding this comment.
we should probably localize these texts
| 'group' => IShare::TYPE_GROUP, | ||
| 'link' => IShare::TYPE_LINK, | ||
| 'circle' => IShare::TYPE_CIRCLE, | ||
| default => IShare::TYPE_USER, |
Contributor
There was a problem hiding this comment.
silently mislabels bad data. Could have a warning too, if we must
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1f6933e to
d53e2d8
Compare
β¦ayer Assisted-by: ClaudeCode:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: ClaudeCode:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Assisted-by: ClaudeCode:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
β¦ shares Assisted-by: ClaudeCode:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
d53e2d8 to
d2e8862
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
π Checklist
/backport to stableX.Xπ€ AI (if applicable)