getredash/redash

Google Spreadsheets: when the spreadsheet not found show the service account email address

Open

#2.940 geöffnet am 14. Okt. 2018

Auf GitHub ansehen
 (12 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (4.236 Forks)batch import
BackendUXhacktoberfest

Repository-Metriken

Stars
 (24.845 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 9T 5h) (3 gemergte PRs in 30 T)

Beschreibung

When trying to query a Google Spreadsheet and it wasn't found, as part of the message to the user show the service account email address.

Reasoning: many times the user tries to share it with their own email address or just not sure what address to share it with.

The Google Spreadsheet query runner implemented in this module: https://github.com/getredash/redash/blob/master/redash/query_runner/google_spreadsheets.py

Will need to alter this error message: https://github.com/getredash/redash/blob/e87efc8bc30cefa0176fea7f12169cf202452727/redash/query_runner/google_spreadsheets.py#L215

The service account email address is in the JSON key file.

Contributor Guide