opendatateam / udata

Customizable and skinnable social platform dedicated to open data.
http://udata.readthedocs.org
GNU Affero General Public License v3.0
239 stars 87 forks source link

Fix `datetime` serialization in extras and fix missing `bcrypt` #3019

Closed ThibaudDauce closed 6 months ago

ThibaudDauce commented 6 months ago

Fix https://errors.data.gouv.fr/organizations/sentry/issues/138221

I'm not sure if the UDataJsonEncoder is used… Because in my first tests based on Python 3.9, a timestamp was returned. With Python 3.11 (maybe following some dependencies removal too…), Flask RestX is not using ujson anymore but simple json and the serialization changed…

If ujson is installed, Flask RestX is using it (as in the CI here) so the cls config doesn't exists https://github.com/ultrajson/ultrajson/issues/124 but on a fresh install, ujson is not installed (as in demo.data.gouv.fr) so it's not working…