Add Spreadsheet#append using the dedicated Google Drive API#349
Add Spreadsheet#append using the dedicated Google Drive API#349genezys wants to merge 7 commits intogimite:masterfrom
Conversation
This allows to append data efficiently to an existing spreadsheet without having to load and submit the whole worksheet everytime we want to add a new row.
gimite
left a comment
There was a problem hiding this comment.
Thanks for the pull request! Overall looks good, but left some comments.
|
Thanks for your feedbacks. Please let me know if my modifications are clear enough now. |
|
@gimite Can you review again please? |
gimite
left a comment
There was a problem hiding this comment.
Sorry to be so late. I was busy recently.
| # then appending the specified values at the end of this data table. | ||
| def append(range_name, values, override_params = {}) | ||
| # | ||
| # +range+ The A1 notation of a range to search for a logical table of data. |
There was a problem hiding this comment.
I still don't understand how it determines the worksheet (i.e., tab) which the value is added to. Assuming the spreadsheet has two worksheets "Sheet 1" and "Sheet 2", and you specify "A1" here, does it add values to A1 of Sheet 1 or Sheet 2? Do you know?
There was a problem hiding this comment.
I am sorry, I don't have more information than what Google provides at https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append
There was a problem hiding this comment.
I still don't understand how it determines the worksheet (i.e., tab) which the value is added to. Assuming the spreadsheet has two worksheets "Sheet 1" and "Sheet 2", and you specify "A1" here, does it add values to A1 of Sheet 1 or Sheet 2? Do you know?
@gimite You can specify "Sheet1!A1". You can find examples in the following URL.
https://developers.google.com/sheets/api/samples/writing#write_a_single_range
This allows to append data efficiently to an existing spreadsheet
without having to load and submit the whole worksheet every time we
want to add a new row.