mysociety / popit

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
76 stars 33 forks source link

uploaded images are populated with "created": "" which prevents indexing #822

Open mhl opened 9 years ago

mhl commented 9 years ago

To reproduce this, just go to a person's page, click edit, add photo and look at the JSON for the person; they'll have images[0].created set to "". Elasticsearch's inferred mapping assumes that this is a optional datetime field, so indexing of the person and their memberships will fail.

The same happens when uploading an image via the API.