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

Fix datetime serialization in extras and fix missing bcrypt #3019

Merged
merged 10 commits into from Apr 17, 2024

Conversation

ThibaudDauce
Copy link
Contributor

@ThibaudDauce ThibaudDauce commented Apr 17, 2024

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 ultrajson/ultrajson#124 but on a fresh install, ujson is not installed (as in demo.data.gouv.fr) so it's not working…

@ThibaudDauce ThibaudDauce changed the base branch from master to python3.11 April 17, 2024 11:04
@ThibaudDauce ThibaudDauce changed the base branch from python3.11 to master April 17, 2024 12:40
@ThibaudDauce ThibaudDauce changed the title Fix datetime serialization in extras Fix datetime serialization in extras and fix missing bcrypt Apr 17, 2024
Copy link
Contributor

@maudetes maudetes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's test this in our demo env to make sure it doesn't have side effects

@ThibaudDauce ThibaudDauce merged commit e8fb341 into master Apr 17, 2024
1 check passed
@ThibaudDauce ThibaudDauce deleted the fix_datetime_in_extras branch April 17, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants