ExportAsCsv quietly strips out dates and enums, no casting, no errors #6195
Unanswered
philsturgeon
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
image: 'mysql:8.0.28-oracle'sail-8.2/appDescription:
I'm working with QueuedExportAsCsv which is an extension of ExportAsCsv and I believe the issue to be there as I've seen a few others truggling with this. I have a Nova resource using
withFormat, and strangely only some of the fields are showing up in that CSV.That produces this:
The complicated fields made it, with lat/lion being a MySQL GIS POINT() so if that was ok I am confused about what could be making the other fieldsd not show up. I tried with and without spaces and caps but the docs suggest that shouldnt matter anyhow.
Detailed steps to reproduce the issue on a fresh Nova installation:
Nova Resource
Model
Schema
Oh yay figured it out half way through writing the issue, its things which arent actually strings:
Unit Type was an enum, so I had to pull the value. Dates were all objects and sileltnly being yoinked out, so either format or cast as string, either work.
This might need a bit more documentation, or could throw errors/warnings or something?
Beta Was this translation helpful? Give feedback.
All reactions