-
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
shareowner can now edit re-share permissions without any restriction #36193
Conversation
05d1d08
to
c50db34
Compare
Codecov Report
@@ Coverage Diff @@
## master #36193 +/- ##
=======================================
Coverage 54% 54%
=======================================
Files 63 63
Lines 7408 7408
Branches 1309 1309
=======================================
Hits 4001 4001
Misses 3021 3021
Partials 386 386
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #36193 +/- ##
=======================================
Coverage 54% 54%
=======================================
Files 63 63
Lines 7408 7408
Branches 1309 1309
=======================================
Hits 4001 4001
Misses 3021 3021
Partials 386 386
Continue to review full report at Codecov.
|
c50db34
to
c70df0c
Compare
Code looks good if this is the final approach we want to take. |
No interface change, no confusing part in the code, I guess this is the best one. I would like to continue with this one. |
ccfac8b
to
5f0ed01
Compare
@micbar |
I think there have been cases where the user isn't set yet inside the session during the dependency wiring. In addition, user in the session might change, which will likely cause bugs. |
So injecting the session would be better? |
Hmm, @jvillafanez is pointing out a right point. @micbar let's use |
Vincent and me wanted to have it more clear in the code why we have a session in ShareManager. We don't need the session, we need the acting user. |
But I see your point @jvillafanez |
I think we're back to square 1. |
Actually, the current behavior of One of the options is changing the interface in a minor release. IMHO, in another interface implementation, our desired behavior can be unwanted. So, I would not identify this On the injected |
5f0ed01
to
c6d9c36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 fine by me with the IUserSession approach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good
@davitol Please test again during RC1 and test |
Works as expected on the desktop sync client 2.5.4 and 2.6.0 RC1, macOS 10.14.5 and server 10.3.0RC1 |
This is the first PR of related issue. The other PRs do not feel right to me and I returned back to this one. Sorry for all the confusion.
I just made the UserSession nullable in the Manager constructor and adjusted tests. @PVince81 like you said in here #36166 (comment), whenever the session user is null, mentioned
if
condition will be disabled in this pr.Description
Shareowner should have full permission on re-shares. For detecting re-share, this PR compares the session user UID with the shareowner UID as described in this comment: #36107 (comment).
Related Issue
Motivation and Context
Fighting with bugs.
How Has This Been Tested?
Manually with steps in #36107, acceptance tests added and unit tests adjusted.
Types of changes
Checklist: