NASA-IMPACT / admg-backend

Apache License 2.0
2 stars 0 forks source link

Specify the output_field on Coalesce to avoid error when source field… #447

Closed edkeeble closed 1 year ago

edkeeble commented 1 year ago

… is JSONField and we expect to retrieve a string.

May resolve #444

When accessing the gcmd sync list route, we get an error due to our use of Coalesce. We intend to retrieve a string, but are apparently retrieving data from both JSONFields and CharFields. I can't replicate this locally, so there may be something in the staging database causing the error, but this should at least force Coalesce to return a string.

alukach commented 1 year ago

I think I tricked this PR into skipping the lint check by rebasing. #448 is an idea to avoid Black lint issues moving forward.