Repository navigation
Also send SSEs to share recipients - #3684
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 51 |
🟢 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 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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
👍 I'll add a utils.AncestorGrantsKey to the reva PR
|
|
||
| us, err := resolveID(ctx, gwc, uid, gid) | ||
| if err != nil { | ||
| return nil, nil, err |
There was a problem hiding this comment.
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
Fixes #3672
Note: Depends on opencloud-eu/reva#867