-
Notifications
You must be signed in to change notification settings - Fork 948
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
Update local properties when updating spreadsheet/worksheet #881
Comments
IssueThis issue raises the following problems:
RequirementsTo solve we must ensure the following requirements:
Possible solutionsupdate local properties after successful update call
fetch latest spreadsheet properties after every update call
ProposalUpdate local properties and provide convenient method to fetch properties
|
Possible solutionsUse some caching mechanism
Thank to @sandl99 for this proposal |
I agree that #1211 fixes most of them. Did we go over the whole properties we set ? if so yes we can close this issue then. I think #1212 will be too costly for users. We can add a new feature for the user to choose either:
|
See #1211 (comment) for every property that is set. |
calls to Perhaps there are other methods which change Here, we would have to update properties |
perhaps we could have some kind of wrapper around i.e., rework this signature Lines 2790 to 2792 in c9c88a7
|
I thought about it too but too complexe I think 🤔 (the wrapper around I check the code today and when we use |
However,
I am not very familiar with the spreadsheet object, so I am not sure why the implementation differs in this way. |
this is because they don't use the same API calls. I see so we miss some of them 🤔 We are still better than before but not yet complete. We could simply increase the value in the method |
this is now fixed |
Is your feature request related to a problem? Please describe.
Updating spreadsheet property call does not update local properties.
ex: call to
append_row
does not increase propertyrow_count
Describe the solution you'd like
Update local properties when necessary.
Describe alternatives you've considered
One can make the explicit call to
sht.fetch_sheet_metadata()
to update the properties with latest known values from the API.Additional context
Warning this only solves the issue for SpreadSheets accessed via a single script. If an other script or a human using a web browser accesses the SpreadSheet and updates it, then the values known localy are still invalid.
If you are in that case then you must call
sht.fetch_sheet_metadata()
to prevent concurent accesses etc.relates to #545
The text was updated successfully, but these errors were encountered: