coralproject / cay

Front-end code for Coral community tools
Other
20 stars 5 forks source link

Fix ask form submission CSV export #757

Closed jde closed 8 years ago

jde commented 8 years ago

It looks like we’ve had some regression on the CSV download: https://ask-stg.coralproject.net/forms/5818f8aaba6bce0001ba8aad/submissions

The link leads directly here: https://ask-stg.coralproject.net/v1/form/5818f8aaba6bce0001ba8aad/submission/export?download=true&filterby=&search=

It should: hit the https://ask-stg.coralproject.net/askd/v1/form/5818fffcba6bce0001ba8ab8/submission?skip=0&limit=10&orderby=dsc&filterby=&search= endpoint with csv=true I think and it will return a csv_url param. It should then redirect the user to that url with the access_token=${my access token} added to the url so that it will be authorized.

This is what it used to do. It looks like that redirect was taken out of the equation.