-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Upgrade gspread 3.1.0 for supporting team drive #3838
Conversation
Signed-off-by: koooge <[email protected]>
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.
Thank you for opening this pull request. Please see comment about timeout.
Also in #2608 it was mentioned that v3 drops support for the API we're using: was this addressed in newer versions of gspread?
spreadsheetservice = gspread.Client(auth=creds, http_session=timeout_session) | ||
spreadsheetservice.login() | ||
return spreadsheetservice | ||
return gspread.authorize(creds) |
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.
Why did you remove the timeout handling?
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.
oops. Because gspread.httpsession was not found, but I will fix it
Traceback (most recent call last):
File "main.py", line 2, in <module>
from gspread.httpsession import HTTPSession
ModuleNotFoundError: No module named 'gspread.httpsession
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.
This reverts commit e53e8cb.
Signed-off-by: koooge <[email protected]>
gspread 3.0.0 drops v3 API https://github.com/burnash/gspread/releases. But I suppose we don't need mind it. We have to care changes of gspread's interface like HTTPSession basically. |
Thanks! |
* Upgrade gspread 3.1.0 for supporting team drive Signed-off-by: koooge <[email protected]> * Revert "Upgrade gspread 3.1.0 for supporting team drive" This reverts commit e53e8cb. * Upgrade gspread 3.1.0 for supporting team drive Signed-off-by: koooge <[email protected]> * Update Sheets query runner name
Hi there ✋
What type of PR is this? (check all applicable)
Description
google spreadsheet on team drive was not supported by redash due to using old API version of google API. So, upgrade gspread to the latest version.
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)