-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
group shares should respect to users auto accept preference #34850
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #34850 +/- ##
============================================
+ Coverage 65.35% 65.35% +<.01%
- Complexity 18484 18488 +4
============================================
Files 1208 1208
Lines 69969 69977 +8
Branches 1280 1280
============================================
+ Hits 45727 45734 +7
- Misses 23870 23871 +1
Partials 372 372
Continue to review full report at Codecov.
|
Code looks fine. I have some questions: If the admin has set autoaccept and the group has one member with explicit autoaccept disabled, the user will have his share in a pending state. However, what happens the other way around? What if the admin doesn't have set the autoaccept, but the user has it enabled? I expect the user to autoaccept the share (or maybe this situation isn't possible, I don't remember) For the code, I think we should start considering splitting things. The
As long as the logic works fine, for me it's ok to merge this PR (double-check the above case first) and figure out a refactor plan at some point. |
@jvillafanez like you said if it is disabled by admin, user can not even see this option. User only can configure when it is enabled. We have also acceptance tests for this case.
Actually, most of the sharing code base are complex and some parts of it are including legacy things. We should definitely consider to refactor it. However, this PR is only a bug fix. I prefer to make it out of this PR's scope. |
So if it's disabled, we ignore whatever option the user could have been set (?). If that's what we want and there are test covering that scenario, then it's ok. I think we should somehow document this in order to make the behaviour as clear as possible, although I'm not sure where. |
Yes. It is decided in that way. I guess you are describing the following scenario: |
@karakayasemi please backport |
Description
If auto accept enabled by admin and if it is a group share, create sub-share for auto accept disabled users in the pending state to respect users auto accept preference.
Related Issue
Fixes #34705
Motivation and Context
Removing bug.
How Has This Been Tested?
testuser
andtestgroup
.testuser
totestgroup
testgroup
with admin usertestuser
Types of changes
Checklist:
Open tasks: