opendatapress / open_data_press

Google Sheets to Open Data Publishing Tool
MIT License
13 stars 0 forks source link

Duplicate data source & views between accounts #17

Open craig552uk opened 11 years ago

craig552uk commented 11 years ago

It should be possible to duplicate the data views from one account to another. This would create a Google spreadsheet in the users Drive with the necessary headings and data. A corresponding DataSource record would be created and the DataViews would be duplicated also.

The user would be prompted to authenticate/create account if necessary.

craig552uk commented 11 years ago

Duplicating would be handled by a request like GET /<profile_slug>/<data_slug>?copy.

As oAuth2 does not carry arbitrary query string parameters through the authentication handshake, it would probably be necessary to store a forwarding URL in the session. The oAuth2 callback handler would check for a forwarding URL and if present delete, then issue a redirect to it.