Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
761bc23 to
7d60718
Compare
|
/backport to stable35 |
cb7a826 to
ba69061
Compare
|
/compile amend / |
|
/compile |
|
Compile bot is failing because the PR comes from a fork. |
Co-authored-by: Copilot <copilot@github.com> GPT-5.6 Terra Signed-off-by: Stefan Lender <Stefan.Lender@dataport.de>
Co-authored-by: Copilot <copilot@github.com> GPT-5.6 Terra Signed-off-by: Stefan Lender <Stefan.Lender@dataport.de>
Signed-off-by: Stefan Lender <Stefan.Lender@dataport.de>
Signed-off-by: Stefan Lender <Stefan.Lender@dataport.de>
81742c7 to
9a61ea4
Compare
I rebuilt it locally. It should be good now. |
Signed-off-by: Louis Chmn <louis@chmn.me>
8a1f00d to
467e24d
Compare
| foreach ($this->membershipRequest->getMemberships($owner->getSingleId()) as $membership) { | ||
| try { | ||
| $membershipCircle = $this->circleRequest->getCircle($membership->getCircleId()); | ||
| } catch (CircleNotFoundException) { | ||
| continue; | ||
| } | ||
|
|
||
| $quota = $this->getTeamFolderQuota($membershipCircle); | ||
| if ($quota !== null) { | ||
| $matches[] = $quota; | ||
| } | ||
| } |
There was a problem hiding this comment.
This means the quota for a unrelated team impacts the quota of the current team if the current user is part of both?
Is this really what we want?
There was a problem hiding this comment.
@artonge, @jospoortvliet, @marcoambrosini
My understanding of the requirement is that both groups and teams can be used as quota mappings. I have already added the mapping to the admin UI. I am a bit confused:
When a user creates a new team, we should collect the default, all matching group quotas, and all matching quotas from teams the user is a member of, then apply the highest value. 0 remains unlimited and therefore takes precedence.
Would you prefer a different priority model, where team membership quotas are only considered if no matching group quota exists? I think that would be a valid alternative, but it would make groups override teams rather than treating both mapping types equally.
What do you think about?
4b12d53 to
c9810e4
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Co-authored-by: Copilot <copilot@github.com> GPT-5.6 Terra Signed-off-by: Stefan Lender <Stefan.Lender@dataport.de>
7d15270 to
eac2c64
Compare
Implement a default quota per group. #2895
Summary
We need a way for admins to set default quotas for team folder creation, based on group membership. This needs a group -> quota mapping in the Teams admin settings.
Admin settings --> Teams
- In the Team settings, admins can add entries to a table, defining default quotas for groups.
- When a user creates a new team, the highest quota of the groups, this user is a member of, gets applied to the new Team folder.
- At least a line for "all" is always present in the table, which is applied at team creation, when the user isn't a member of any other quota group.
- The three-dot menu lets admins delete any mapping, despite "all".
- The quotas only get applied at team creation. An admin can alway change the quota of existing teams later on.
group | default quota | options -- | -- | -- all | 100 MB | marketing | 2 GB | ... sales | 10 GB | ... engineering | 5 GB | ...Examples
marketingandengineering. He creates a new team, which gets a quota of 5 GB.TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)