Skip to content

Also send SSEs to share recipients - #3684

Merged
aduffeck merged 5 commits into
opencloud-eu:mainfrom
aduffeck:guest_sse
Oct 9, 2026
Merged

aduffeck merged 5 commits into
opencloud-eu:mainfrom
aduffeck:guest_sse

Conversation

@aduffeck

@aduffeck aduffeck commented Oct 9, 2026

Copy link
Copy Markdown
Member

Fixes #3672

Note: Depends on opencloud-eu/reva#867

@codacy-production

codacy-production Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 51 complexity

Metric Results
Complexity 51

View in Codacy

🟢 Coverage 68.13% diff coverage · +0.07% coverage variation

Metric Results
Coverage variation ✅ +0.07% coverage variation (-1.00%)
Diff coverage ✅ 68.13% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (84e10b3) 91169 22411 24.58%
Head commit (1d07633) 91248 (+79) 22494 (+83) 24.65% (+0.07%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#3684) 91 62 68.13%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.


// ancestorGrantsKey makes a stat return the active grants on the resource and its ancestors,
// excluding the space root. The storage only returns them to service accounts.
const ancestorGrantsKey = "ancestor-grants"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe it's better to expose this key in reva and to just reuse it in calls, right now we have exact two identical consts and in case one is changed the second one should be update

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.

👍 I'll add a utils.AncestorGrantsKey to the reva PR


us, err := resolveID(ctx, gwc, uid, gid)
if err != nil {
return nil, nil, err

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

seems like this one can be an issue, in case of failure the loop will be stoped, the other checks use continue, maybe we should use it here as well

@aduffeck
aduffeck enabled auto-merge October 9, 2026 13:25
@aduffeck
aduffeck merged commit f798e4f into opencloud-eu:main Oct 9, 2026
66 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

guestlinks: Enable SSE

2 participants