-
Notifications
You must be signed in to change notification settings - Fork 49
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
gsheetsImport: reduce the number of API calls #526
Conversation
return False | ||
return True | ||
|
||
|
||
def gsheets_import(test_results, worksheet, filename, start_col=1): | ||
"""Upload results data to spreadsheet""" | ||
|
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.
I wonder if we should be using worksheet.get_all_values('FORMULA')
given we're using 'USER_ENTERED'
later?
Going to look at using |
@alanb-sony would you be interested in contributing your atomic version of insert_rows() to gspread? |
use append to add rows at the bottom of the sheet to fix race conditions on concurrent updates
@burnash yes if you think the implementation is reasonable? |
I think so. Would it be possible to contribute a multi-rows version of the implementation in this PR? |
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.
LGTM
Uploading test results from multiple platforms can hit the google API rate limits. This patch reduces the number of reads and writes made so should reduce the chance of hitting the limits.