-
Notifications
You must be signed in to change notification settings - Fork 6
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
drive: permission invites get re-sent on occasion #497
Comments
35e1209 did not fix this, because we do not recreate shares that cascade. |
#540 disabled share deletion, so I've updated the issue to indicate cascading permissions deletion might not be the issue here. Thought: it could be that we need to page through results, given that this only happens for the Projects folder which is our largest. |
Some more findings: we do not have shared drives, that is limited to a pricing tier above what we have, so the permissions inheritance approach (#499) is a no-go |
Drive shares frequently get recreated because we fail to page through all results (we likely have over 100 shares for large folders), and when deletion was enabled (#540) we would also erroneously delete inherited permissions. Both of these issues result in many users receiving duplicate invites whenever Rocket performs a sync (#510, #497). To amend this, we make the following changes: * Permissions listing is now paginated * Permissions listing now happens for direct parents of target folders - permissions discovered in parents are treated as "inherited", and for these permissions we skip both recreation and deletion Co-authored-by: Cheuk Yin Ng <[email protected]>
There still seems to be a lot of creations that are not getting seen, and still getting reports of duplicated invites |
I think we're finally clean through a series of direct-to-master pushes oops 55b48e5...ffc67b3 tl;dr Rocket was failing to identify who has already received shares because:
(╯°□°)╯︵ ┻━┻ If you accept the most recent drive invite, you should be good to go now! Sorry about the spam 😅 |
I can't seem to fetch permissionDetails to determine if a permission is inherited - something about the difference between personal drives and team drives? https://developers.google.com/drive/api/v3/reference/permissions#resource
One solution might be to not delete permissions at all => #497 (comment)
The text was updated successfully, but these errors were encountered: