Skip to content
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

bugfix: handle domain name in spreadsheet copy permissions #1458

Merged
merged 1 commit into from
May 12, 2024

Conversation

lavigne958
Copy link
Collaborator

When a user request to copy a spreadsheet it can request to copy the source spreadsheet permissions too.

When copying the permissions these could be of type:

  • Anyone (no email address)
  • User or Group: an email address exists
  • Domain: no email address exists but a domain instead

extract the right information and pass it to the lower level method that will handle it depending on the type.

closes #1457

When a user request to copy a spreadsheet it can request to copy the
source spreadsheet permissions too.

When copying the permissions these could be of type:
- Anyone (no email address)
- User or Group: an email address exists
- Domain: no email addresse exists but a domain instead

extract the right information and pass it to the lower level method that
will handle it depending on the type.

closes #1457

Signed-off-by: Alexandre Lavigne <[email protected]>
@lavigne958 lavigne958 requested a review from alifeee April 23, 2024 21:12
@lavigne958 lavigne958 self-assigned this Apr 23, 2024
@alifeee
Copy link
Collaborator

alifeee commented Apr 24, 2024

test?

@lavigne958
Copy link
Collaborator Author

test?

this is the kind of thing we can't test even by myself.

It happens when you share a spreadsheet with an entire google domain like (mycompany.com)
I have access to one of those domain with my current job but I don't want to share my TestSpreadSheet with hundreds of peoples 😆

So we can't test it 😞

I checked if I can get google workspace (which provided a domain address) and it's 9€/month at least.

@alifeee
Copy link
Collaborator

alifeee commented May 10, 2024

ready to merge?

@alifeee alifeee added this to the 6.1.1 milestone May 10, 2024
@lavigne958
Copy link
Collaborator Author

it is, let's go merge.

@lavigne958 lavigne958 merged commit 033d4ca into master May 12, 2024
10 checks passed
@lavigne958 lavigne958 deleted the bugfix/copy_sheet_domain_permission branch May 12, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client.copy(..., copy_permissions=True) breaks when permission type is domain
2 participants