question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy_to returning raw dictionary

See original GitHub issue

Is your feature request related to a problem? Please describe. It would be great if we were able to initialize a worksheet from a json. Or alternatively have the worksheet.copy_to method return the worksheet instead of the raw dictionary returned by google

Below the example of a dict returned by the copy_to method. I would love to be able to immediately edit this worksheet.

json

{'sheetId': 1234556, 'title': 'titel', 'index': 6, 'sheetType': 'GRID', 'gridProperties': {'rowCount': 1003, 'columnCount': 25, 'frozenRowCount': 1, 'hideGridlines': True, 'columnGroupControlAfter': True}, 'tabColor': {'red': 0.9882353, 'green': 0.49019608, 'blue': 0.4117647}, 'tabColorStyle': {'rgbColor': {'red': 0.9882353, 'green': 0.49019608, 'blue': 0.4117647}}}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
lavigne958commented, May 11, 2022

Hi, I looked at your issue and I am sorry but we can’t make it without extra costs.

The dict object returned by the API contains only the new sheet properties. it does not contain any informations about the spreadsheet where this sheet has been copied to.

I face 2 issues:

  1. with only the sheet properties I could return a new Worksheet instance but we don’t have the parent Spreadsheet object that will do all the HTTP requests
  2. the method copy_to takes the Spreadsheet ID so we could do something but in the end it will only be like any user could do: 1) open the destination spreadsheet 2) open the new worksheet.

About the protected ranges this is a good point, but we will tackle it in a different issue, see #1046

Closing this issue.

0reactions
juliusdanekcommented, Apr 26, 2022

Yeah, it’s costly unfortunately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Return copy of dictionary excluding specified keys
Save this question. Show activity on this post. I want to make a function that returns a copy of a dictionary excluding keys...
Read more >
copy_to | Elasticsearch Guide [8.5] | Elastic
The copy_to parameter allows you to copy the values of multiple fields into a group field, which can then be queried as a...
Read more >
Dictionary<TKey,TValue>.KeyCollection.CopyTo(TKey[], Int32 ...
In this article. Copies the Dictionary<TKey,TValue>. KeyCollection elements to an existing one-dimensional Array, starting at the specified array index.
Read more >
Query semi-structured data in Databricks
The returned results are strings. ... Copy to clipboard Copy ... SELECT raw:store.bicycle FROM store_data -- the column returned is a string.
Read more >
Seldon Python Component — seldon-core documentation
This method should return a Dictionary of metrics as described in the custom metrics docs. An illustrative example is shown below: class ModelWithMetrics(object): ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found