-
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
Exporting query results as Google Spreadsheet #2343
Conversation
c0dfd21
to
df42e83
Compare
Sorry, I'm going to fix error tests later. |
bf835f4
to
131564f
Compare
I like this feature, thanks @kyoshidajp Question: what happens if you don't have your JSON Key file and your try to hit the "Export as Spreadsheet" button? I think it'd be an elegant solution to show a modal with a little message that you'll need to upload your JSON Key File first and link to the Settings (or maybe link to support article). The choice of word for Download/Export is indeed a bit confusing. What I'd do is keep it as Download (and we'll figure out something better for this later) but use "Export as Google Spreadsheet" instead to be clear about what's going to happen. On the Settings page, shouldn't we use "Google Spreadsheet" (instead of Spreadsheet) to be more specific about what is this for? |
Is it possible to export to Google Spreadsheets without passing JSON key file when the user is registered via OAuth? |
@kocsmy Thanks.
I didn't consider that. Now, I changed that redirect to settings page with a warning message. Also, I changed the label on the settings and on the query page. |
@denisov-vlad No. Export by Service Account with API. JSON key file of Google Spreadsheet Account must be set. |
Thanks @kyoshidajp that all looks great now! |
4a81506
to
f2383a5
Compare
I have resolved the conflict. |
really interesting feature, thanks |
Hi, (This is a template message, but I mean every word of it. Also you're welcome to reply) Thank you for making this contribution. While we couldn't bring it to completion and merge, it's still very much appreciated. 🙇 In the past year the Redash code base gone under massive updates: on the backend we moved to Python 3 & RQ instead of Celery and on the frontend we replaced Angular with React. It's very likely this makes this PR irrelevant without significant changes. :-( I'm closing this PR now. But if you're still interested in making it happen, let me know and I will reopen. Thanks. |
In order to export query results to Google Spreadsheet, calling IMPORTDATA with CSV format URL from Spreadsheet is the easiest way. However, the way is needed to make access public to allow access from Google.
This feature is export query results by using Google Spreadsheet API and add you as the owner. Also, after you export results, then open the sheet page.
Steps to use
https://spreadsheets.google.com/feeds
andhttps://www.googleapis.com/auth/drive
scope of Google Spreadsheet at settings pageScreenshot
Export button on query page
"Download" label may not be an appropriate name.
JSON key file input on settings page