Skip to content
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

Export objects to CSV #3278

Closed
fargito opened this issue May 27, 2019 · 2 comments · Fixed by #3279
Closed

Export objects to CSV #3278

fargito opened this issue May 27, 2019 · 2 comments · Fixed by #3279

Comments

@fargito
Copy link
Contributor

fargito commented May 27, 2019

What you were expecting:
When I click on the 'export to csv' button, the dowloaded file should not display [object Object] in any field

Steps to reproduce:

  • Open the demo app
  • Go to 'posts'
  • Click the 'export' button
  • In the dowloaded file, in the 'backlinks' column, there are [object Object] items
@fzaninotto
Copy link
Member

Thanks for your report.

In the general case, I don't think JSON is acceptable in a CSV. On the other hand, [object Object] forces the developer to design a well-crafted CSV format. So it's an acceptable default IMO.

Now I agree that the simple example should have a custom exporter. I'll mark that as a bug, but just for the demo app.

@fargito
Copy link
Contributor Author

fargito commented May 27, 2019

Ok perfect, I'll create a custom exporter for the demo app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants